Paypal支付标准:回调URL
在 Paypal 沙盒上:
使用测试帐户登录并单击“立即付款”按钮后,用户将被重定向到 Paypal 内的“感谢您的订单”页面。该页面的消息下方有三 (3) 个链接,内容为:
Return to Test Store
Go to PayPal account overview
Add funds from your bank
单击“返回测试商店”会将我重定向到我在查询字符串中指定的返回 URL。这会将订单标记为“已完成”或 Paypal 返回的 payment_status 的任何值。
问题: 单击其他链接会绕过返回 URL 并转到用户帐户配置文件,即使交易已成功支付,也会导致订单不完整,因为返回 URL 具有标记交易结果的脚本。
问题: 有没有办法绕过感谢页面并重定向到我的返回 URL,以便相应地完成交易?
顺便说一句,我将我的测试业务帐户设置为在订单后自动重定向到返回 URL。
On Paypal Sandbox:
After logging in using a test account and then clicking the "Pay Now" button, the user is redirected to "Thanks for your order" page inside Paypal. The page has three(3) links below the message that says:
Return to Test Store
Go to PayPal account overview
Add funds from your bank
Clicking the "Return to Test Store" will redirect me to the return URL I specified on my query string. This marks the order as "Completed" or whatever the value of the payment_status returned by Paypal is.
The Problem:
Clicking the other links bypasses the return URL and goes to user account profile which leaves the order incomplete even if the transaction was successfully paid because the return URL has the script to mark the outcome of the transaction.
The Question:
Is there a way to bypass the Thank you page and just redirect to my return URL so the transaction can be concluded accordingly?
BTW, I have my Test Business Account set to autoredirect to the return URL after the order.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您想了解 PayPal 的即时付款通知以及<一href="https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_admin_IPNSetup">识别 PayPal 的 IPN 侦听器。
无论用户点击什么,您都可以选择在交易发生时收到通知。 Paypal 的服务器将向您提供的通知 URL 发出请求,并向您提供有关该交易的信息。
You want to read about PayPal's Instant Payment Notification and about Identifying Your IPN Listener to PayPal.
You have the option to be notified whenever a transaction takes place, regardless of what users clicks on. Paypal's servers will make requests to a Notification URL you provide and give you informations about that transaction.