我希望使用“将支付按钮添加到您的网站” https://developer.paypal.com/webapps/developer/docs/integration/web/来集成 Paypal,因为我的网站只需要一次购买,所以这个解决方案是完美的。
但它需要在商户端作为异步解决方案实施的 IPN 来接收交易结果。当按钮将用户重定向到 paypal.com 以完成付款过程时。但在那之后完成。用户不会自动重定向回商家网站。
我在论坛上发现我可以在脚本元素中添加一个“数据返回”属性,这样当用户完成支付时,就会有一个指向商家网站的附加链接。现在由于 IPN 是异步的,一旦用户查看“数据返回”页面,IPN 可能还没有被调用。我的问题是:
1. So what's the suggested solution of synchronizing between return page and IPN?
2. When testing, I found a lot of query strings are appended to the "data-return" URL, looks related to transaction result. Can I use them to replace IPN so I have a SYNCHRONOUS way of verifying the transaction result?
谢谢!