Paypal PDT - unable to get transaction ID

不羁的心 提交于 2019-12-10 16:21:41

问题


After a customer pays from Paypal, he can be auto-redirected back to my website with auto-return and pdt features switched on. Everything works fine when the customer waits 10 seconds for the auto-redirect, transaction id is sent via a get, but when the customer chooses to "click here" instead of waiting for 10 seconds for the auto-redirect, the transaction id is not sent.

Anyone knows of a way to fix this?

Thanks!


回答1:


First, are you just trying to display the transaction ID or are you trying to add it in a database or use it for email receipts, etc?

If you're simply trying to display it then PDT is fine. Otherwise, I'd highly recommend you use IPN instead. It's very similar except that the data will always be POSTed to it regardless of whether the user makes it back to your site or not, which isn't always guaranteed, even with Auto-Return enabled.

If PDT is all you need, it really should work the same regardless of how they make it back. I use PDT so rarely, though, that I really haven't tested it much lately. I'd have to run some tests in the sandbox to see if I can reproduce that and figure out how to make it work how you want.

Let me know, though, because if IPN is the better solution I don't want to waste time messing with PDT.



来源:https://stackoverflow.com/questions/10060062/paypal-pdt-unable-to-get-transaction-id

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!