paypal/ipn-code-samples

Discrepancy in the information and IPN sample code

Closed this issue · 3 comments

In the dev doc IPN verification URL is described as follows

Send response messages back to PayPal:
https://ipnpb.sandbox.paypal.com/cgi-bin/webscr (for Sandbox IPNs)
https://ipnpb.paypal.com/cgi-bin/webscr (for live IPNs)

But in the code

It's used from one of the following

VERIFY_URL_PROD = 'https://www.paypal.com/cgi-bin/webscr'
VERIFY_URL_TEST = 'https://www.sandbox.paypal.com/cgi-bin/webscr'

The URLs in the code were/are the old URLs, which still work for backward compatibility however I have changed them over to the new URLs.
Thanks for the flag.

As per the doc, the sample code still seems to be inconsistent, we've to add User-Agent as well in the code.

I have created a new issue for updating the samples to send a user agent, thanks.