Home » Php » php – custom field in the IPN of paypal adaptive payment

php – custom field in the IPN of paypal adaptive payment

Posted by: admin July 12, 2020 Leave a comment

Questions:

I have implemented Adaptive Payment in my website. First It was Standard Payment so in that i was passing a custom parameter in the form and i was getting it in IPN. But i am unable to find how to pass this parameter in Adaptive Payment.

Thanks

How to&Answers:

[Edit]

As per @jackvsworld suggests in PayPal Adaptive use parameter as ipnNotificationUrl.

I did this by passing into GET parameters of notify_url

For e.g. http://www.mywebsite.com/index.php?param_1=value&param_2=value

Answer:

I agree with @jimy to use the querystring, but in PayPal Adaptive the parameter is not notify_url.

For PayPal Adaptive use the ipnNotificationUrl field of the Pay or Preapproval request

Source: Identifying Your IPN Listener to PayPal