Search code examples
phppaypalpaypal-pdt

PDT stopped working, no parameters in return URL


I need to provide a personalized page to people who make a donation via a Paypal donation button.

I've setup PDT with a PHP script on the return URL (code from https://github.com/paypal/pdt-code-samples) and it's been working fine for several weeks.

About 2 weeks ago it stopped working, although I've not changed anything on the PHP code or in my Paypal configuration. I realized that now after donation, Paypal still redirects the user to my PHP script but with no parameters in the url (e.g. no "tx", "amt", etc.), so I can't process the transaction.

As recommended on a post, I tried switching off the return address and PDT in my Paypal account, then reenable them, but with no success.

Interestingly, everything still works fine in the Paypal sandbox, my problem only occurs in production.


Solution

  • Are there $_POST variables, as opposed to $_GET ?

    PDT is very old, those samples are from over 8 years ago. Consider changing to the current Donate SDK.