简体   繁体   English

贝宝自适应付款响应

[英]PayPal adaptive payments response

I'm using the paypal adaptive SDK on github, for a simple 1 recipient payment, so I'm using the simple pay file. 我正在github上使用Paypal自适应SDK,用于简单的1收件人付款,因此我在使用简单的pay文件。

https://github.com/paypal/adaptivepayments-sdk-php https://github.com/paypal/adaptivepayments-sdk-php

I'm able to make a payment, I've entered all the details correctly and that's fine, but I'm just wondering where I get the response so I Know the payment was successful and I can process the order? 我可以付款,我已经正确输入了所有详细信息,这很好,但是我只是想知道我在哪里得到答复,所以我知道付款成功了,可以处理订单了吗? Currently it just goes to the return URL, but where does the payment success date come from? 目前,它仅返回返回URL,但是付款成功日期从何而来?

And also, if you could tell me how to send data like the order and user ID across that would be great too! 而且,如果您能告诉我如何跨订单发送数据(例如订单和用户ID),那也很棒!

Thanks. 谢谢。

You can not check if payment was successful via success form, it doesnt recieve any payment information. 您无法通过成功表格检查付款是否成功,它不接收任何付款信息。 Instead you should use IPN It will contact your server in a secure way and inform you on payment event. 相反,您应该使用IPN 。它将以安全的方式联系您的服务器,并通知您付款事件。 You can periodically pull your server on IPN message recieved for client via AJAX, to show inform what payment was processed. 您可以定期通过AJAX在收到客户的IPN消息上拉您的服务器,以显示通知您处理了哪些付款。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM