获取付款;快速结账
你好 我的网站上有贝宝快速结帐功能,当用户购买交易时,商家可以通过单击沙箱网站上的捕获按钮来捕获付款。问题是我需要将“捕获状态”返回到网站,因为我需要将其存储在数据库中以供将来使用,是否有一种方法可以让 PayPal 在商家捕获付款时发送一些通知。
谢谢
Hi
I have paypal express checkout working on my site, when user buys something the transaction goes through and the merchant is able to capture payment by clicking on the capture button on the sandbox site. Problem is that I need 'capture status' returned to the site as I need to store it in database for future use, is there a way that paypal sends some notification whenever the payment is captured by the merchant.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
PayPal IPN:https://www.paypal.com/ipn
简而言之,在 SetExpressCheckout 中包含 NOTIFYURL 并DoExpresscheckoutPayment 调用,当交易被捕获时,您将在该 URL 上收到一个 POST。查找“付款状态”,因为它应该显示为“完成”。
不要忘记将 POST 发送回 https:// 来验证 POST www.paypal.com/cgi-bin/webscr?cmd=_notify-validate 并检查已验证/无效响应。
PayPal IPN: https://www.paypal.com/ipn
In short, include NOTIFYURL in your SetExpressCheckout and DoExpresscheckoutPayment call and you'll receive a POST on that URL when the transaction has been captured. Look for 'PAYMENTSTATUS', as that should read 'Complete'.
Don't forget to validate the POST by sending it back to https://www.paypal.com/cgi-bin/webscr?cmd=_notify-validate and checking for a VERIFIED / INVALID response.