paypal-ipn

Paypal IPN Custom field

痞子三分冷 提交于 2019-12-23 02:34:32
问题 I know I can send a custom field using IPN with $_POST['custom'] But can I do that with an uploaded file? More specifically an uploaded image? And what if I have two custom fields? I previously used something like this: <input type="hidden" name="custom" value="<?php echo $a.'|'.$b ?>"/> But that was just text! Now I want to upload a file and I also have custom text, then I want to get it. Is this possible and how would that look like? Thanks! 回答1: I don't think it's possible to do it the way

Unable to getting response from paypal IPN sandbox

末鹿安然 提交于 2019-12-22 10:34:36
问题 Few days ago suddenly it is stopped to receive IPN messages from paypal. I have written the code which are below $url_parsed=parse_url('https://www.sandbox.paypal.com/cgi-bin/webscr'); $post_string = ''; foreach ($_POST as $field=>$value) { $post_string .= $field.'='.urlencode(stripslashes($value)).'&'; } $post_string.="cmd=_notify-validate"; $fp = fsockopen($url_parsed['host'],"80",$err_num,$err_str,30); $myFile = "testpaypal.txt"; $fh = fopen($myFile, 'w') or die("can't open file");

Testing recurring payments in PayPal sandbox

自作多情 提交于 2019-12-22 09:26:36
问题 I am in the paypal sanbox testing recurring payments. I have them set to monthly but is there a way to test the recurring payment coming back from paypal sooner than this.? Any help would be brilliant, Thanks 回答1: Just create a product or change an existing one and require daily recurring payments. The key should be BILLINGPERIOD and BILLINGFREQUENCY but please take a look at paypal PS: If this doesn't help than please show some code :) 来源: https://stackoverflow.com/questions/9499228/testing

Access Denied on Paypal IPN verification

☆樱花仙子☆ 提交于 2019-12-22 08:08:02
问题 I'm getting the the following error when trying to verify payments using the IPN. The same code was tested on the sandbox (before and after the error) and is verifying properly. <HTML> <HEAD> <TITLE>Access Denied</TITLE> </HEAD> <BODY> <H1>Access Denied</H1> You don't have permission to access "https://www.paypal.com/cgi-bin/webscr" on this server.<P> Reference #18......... </BODY> </HTML> The code I'm using is as follows: $raw_post_data = file_get_contents('php://input'); pplog("Processing

Authorize/Capture for PayPal

时光毁灭记忆、已成空白 提交于 2019-12-21 02:56:13
问题 Using PayPal IPN, can we implement delayed payment. Perfect example is Groupon where card is charged only when deal is tipped. Can someone throw light on implementation part using PayPal IPN and also how multiple cards can be charged at once when deal is tipped. 回答1: For Authorize And Capture: To make a payment authorize you will have to pass "authorization" in paymentmethod parameter instead of "sale" <input type="hidden" name="paymentaction" value="authorization" /> So, For this type of

Is there any sample for PayPal IPN

半腔热情 提交于 2019-12-20 12:30:16
问题 I have an Asp.Net WEB API 2 project and I would like to implement an Instant Payment Notification (IPN) listener controller. I can't find any example and nuget package. All I need is to acknowledge that the user paid with the standard html button on Paypal. It's quite simple. All the nuget packages are to create invoice or custom button. It's not what I need The samples on paypal are for classic asp.net and not for MVC or WEB API MVC I'm sure somebody did that already and when I started

How to set mixture of recurring and one time payment in Paypal

﹥>﹥吖頭↗ 提交于 2019-12-20 07:26:46
问题 I'm using Paypal REST API to charge my subscriptions. My transaction includes a mixture of one-time purchase and recurring payment. One time purchase will charge a user amount X, and recurring payment should create recurring profile which will annually charge a user with amount Y. Here is what I have. First I call SetExpressCheckoutPayment with the following parameters: $orderParams = array( 'PAYMENTREQUEST_0_AMT' => "10", 'PAYMENTREQUEST_0_CURRENCYCODE' => 'GBP', 'PAYMENTREQUEST_0_ITEMAMT' =

Paypal IPN Getting blank confirmation ( should be “VERIFIED” or “INVALID” )

ⅰ亾dé卋堺 提交于 2019-12-20 02:18:48
问题 I'm just testing the Paypal IPN here. I've got it set up with Sandbox. I'm sending it fake IPN requests, and it's receiving the IPN. Then, I'm getting it to return the information for verification, and I'm writing the response to a text file so I can check it out on my own. The IPN is firing fine, and the response is getting written to the text file. There's just one problem... The response is blank. The response is supposed to be received as "VERIFIED" or "INVALID", and these are the only 2

PayPal subscriptions PDT / IPN - PLEASE

夙愿已清 提交于 2019-12-19 07:58:14
问题 Am having a lot of trouble getting my head around this paypal payment stuff... How can i confirm that the user has successfully signed up for my subscription? I know 0 about IPN but for example : If a user signs up to my website with example@e.com but uses the paypal account sample@s.com to pay then how to i match up the user. I read that PDT do not send out a transaction ID (tx) for recurring (subscription) payments is that true ? Just need help with it all... honest and easy :) Thanks. 回答1:

PayPal IPN Security

心不动则不痛 提交于 2019-12-19 06:46:32
问题 PayPal IPN sends a POST request with a variable number of fields to the notify URL, in order to confirm that the POST request is legit we need to resubmit the same request along with a additional cmd=_notify-validate field to PayPal, which then replies VERIFIED or INVALID . My question is, why do we need to resend the request to PayPal? Wouldn't something like this suffice? if (preg_match('~^(?:.+[.])?paypal[.]com$~i', gethostbyaddr($_SERVER['REMOTE_ADDR'])) > 0) { // request came from PayPal