paypal-ipn

Paypal Adaptive API return URL mapping with token

喜你入骨 提交于 2021-02-20 04:23:45
问题 I have been trying to solve the following issue from using Paypal Adaptive API. I have integrated Paypal Adaptive chained payment API with my website. When the user clicks on the "pay with paypal" button, it takes to paypal website for payment. My issues starts from here Paypal return to my returnURL, but how do i tie the original request for payment after the return. The returnURL is a HTTP GET with no query parameters from paypal. If i want to use IPN, this wont allow me to test in local

Paypal IPN get subscription end date (recurring)

ⅰ亾dé卋堺 提交于 2021-02-10 14:51:01
问题 I'm developing a site that has annual or monthly paypal subscription options. From the IPN data that receives, can I determine if the subscription is annual or monthly? Doesn't seem possible. At the moment it's set up just for monthly payments, so in my own db I store something along the lines of: $data = array( 'id' => $ipnData['custom'], 'subscribed' => 1, 'subscription_fee' => $ipnData['mc_amount3'], 'subscribed_until' => date("Y-m-d H:i:s",strtotime($ipnData['subscr_date'] . '+1 Month'))

What kind of data obtained from a paypal transaction I should store inside my local database?

旧时模样 提交于 2021-02-10 09:30:27
问题 Which informations obtained from IPN you should keep inside your local Database ? Is the $_POST['txn_id'] field the only field needed to assure you a retrack of all the transaction informations from paypal? Or is it better to insert all informations obtained from the IPN/PDT postback? Basically i'm trying to figure out wich info I need to store in case of a transaction problem and/or a user complaint. 回答1: No, the txn_id isn't enough. According to the documentation PayPal provides on their

ExpressCheckout IPN Invalid response status 403

狂风中的少年 提交于 2021-02-08 05:30:57
问题 I am using PayPal IPN Listener class which was working great for months, but recently (without any code changes) I received a weird issue. The following code which validates the Instant Payment Notification throws an Exception: Invalid response status: 403 $listener = new IpnListener(); $listener->use_sandbox = PAYPAL_SANDBOX; try { $listener->requirePostMethod(); $verified = $listener->processIpn(); } catch (Exception $e) { error_log('Process IPN failed: ' . $e->getMessage() . " [".$_SERVER[

ExpressCheckout IPN Invalid response status 403

一笑奈何 提交于 2021-02-08 05:30:08
问题 I am using PayPal IPN Listener class which was working great for months, but recently (without any code changes) I received a weird issue. The following code which validates the Instant Payment Notification throws an Exception: Invalid response status: 403 $listener = new IpnListener(); $listener->use_sandbox = PAYPAL_SANDBOX; try { $listener->requirePostMethod(); $verified = $listener->processIpn(); } catch (Exception $e) { error_log('Process IPN failed: ' . $e->getMessage() . " [".$_SERVER[

Paypal SandBox IPN History

半城伤御伤魂 提交于 2021-01-20 19:12:55
问题 I use paypal for my payments. For verification i use IPN. Can i review my INP History in the Paypal Sandbox? At the documentation i see Instant Payment Notification History in the History tab. (https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_admin_IPNOperations) After googling i see "IPN History" chapter in the History tab (http://goo.gl/myZKF) At the real sandbox i don't see any IPN history. Thank you. 回答1: they hide it well: https://www.sandbox.paypal.com

How to test Paypal IPN notification

吃可爱长大的小学妹 提交于 2020-12-13 05:57:59
问题 I'm trying to get this PayPal IPN script work but it seems that i don't get the response from paypal . I don't know what's the problem, is in the form or in the script: <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_top"> <input name="return" type="hidden" value="http://localhost/home/menu/index.php" /> <input name="cancel_return" type="hidden" value="http://localhost/home/menu/index.php" /> <input name="notify_url" type="hidden" value="http://localhost

Curl / php Empty response from PayPal IPN url

人盡茶涼 提交于 2020-05-15 21:46:09
问题 In the past couple of days, our PayPal IPN has stopped working and receiving a empty response from PayPal. Nothing has changed on the server or in our code. Attempting to cUrl to the PayPal IPN url simply returns an empty response. $url = "https://www.paypal.com/cgi-bin/webscr?cmd=_notify-validate"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_FRESH_CONNECT, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION,