[英]To get transaction id after Successful Paypal Adaptive Payments PHP
I am new to Paypal. 我是Paypal的新手。
I tried Paypal Adaptive Payments using my paypal sandbox account now. 我现在使用我的Paypal沙箱帐户尝试了Paypal自适应付款。 Payment is successful and it is redirected to my paypal return url.
付款成功,并将其重定向到我的贝宝返回URL。 But i couldn't get any response like transaction id , transaction status.
但是我无法获得任何响应,例如交易ID,交易状态。
How to obtain the response of successful payment using Paypal Adaptive Payments so that i can store the transaction reference id in database? 如何使用贝宝自适应支付获得成功支付的响应,以便我可以将交易参考ID存储在数据库中?
Any help would be appreciated. 任何帮助,将不胜感激。
Thanks. 谢谢。
I would look at Paypal's instant payment notification (IPN) 我将查看Paypal的即时付款通知(IPN)
https://developer.paypal.com/webapps/developer/docs/classic/products/instant-payment-notification/ https://developer.paypal.com/webapps/developer/docs/classic/products/instant-payment-notification/
Example code in php PHP中的示例代码
https://github.com/paypal/ipn-code-samples/blob/master/paypal_ipn.php https://github.com/paypal/ipn-code-samples/blob/master/paypal_ipn.php
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.