PayPal IPN - 发送链接以支付金额?
我有一个使用 IPN 的 PayPal 实施,它工作正常。但是,在某些情况下,我需要能够向用户发送一封电子邮件,其中包含点击并支付发票金额的链接。我不太确定如何做到这一点 - 我知道我可以使用查询字符串变量将它们发送到我网站上的特定页面 - 但是 PP 代码会是什么样子让用户看到一个按钮,上面写着 - “支付 X点击此处金额”。
I have a PayPal implementation using IPN and it works fine. However, in some cases, I will need to be able to send out an email to a user with a link to click on and pay an invoice amount. I'm not really sure how to do this - I know I can send them to a particular page on my site with query string variables - but what would the PP code look like to have the user see a button that says - "Pay X amount by clicking here".
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
用户下“订单”后,他们应该付款。您应该向他们发送一个没有过多变量的链接。类似于:
http://www.yoursite.com/PayInvoice.aspx?i=ENCODED_INVOICE_NUMBER
然后当他们登陆发票页面时。您可以从查询字符串中的“o”参数检索发票信息。加载发票摘要(产品列表等),并在底部/顶部有一个按钮,显示“立即付款”。
After the user places the "order" they are supposed to pay. You should send them a link that is not overloaded with variables. Something like:
http://www.yoursite.com/PayInvoice.aspx?i=ENCODED_INVOICE_NUMBER
Then when they land on the invoice page. You can retrieve the information for their invoice from the "o" parameter in the query string. Load the invoice summary (list of products, etc...) and have button at the bottom/top saying "Pay Now".