Django、PayPal IPN 和用户名 - 概念问题
我正在尝试在 Django 中使用 PayPal(已经实现了 Zong+)来销售虚拟商品。我决定使用 django-paypal 为我处理 IPN(认为 IPN 是最好的全自动选项。)
我目前已经使用他们网站上的 PayPal 按钮向导制作了一个立即购买按钮,即它是安全的并保存在paypal 以防止篡改。 (我对 PayPal 很陌生,没有生活在完全支持的国家/地区,因此我自己没有使用过它。)
我的问题:
- 如何包含进行购买的用户名或识别进行购买的用户的类似方法稍后使用 IPN 回调购买并使用 django-paypal 检索?最好没有办法让用户弄乱它。
- 我应该放弃自动生成的按钮并滚动自己的按钮吗?这会让我传递 PayPal 稍后在 IPN 中发送的额外不可见参数吗?
- 沙盒不允许我创建可以在真实网站上测试的用户帐户,对吧?我想,除非我在沙盒中创建一个商人并为该商人创建一个按钮。
I'm trying to sell virtual goods using PayPal (already implemented Zong+) in Django. I decided to use django-paypal to handle the IPN for me (decided that IPN was the best fully automated option.)
I've currently made a buy-now button using the PayPal button wizard on their website, ie it's secure and saved on paypal to protect against tampering. (I'm very new to PayPal, not living in a fully supported country, so haven't used it myself.)
My questions:
- How do I include the username that made the purchase or a similar means of identifying the user that made the purchase with the IPN callback later and retrieve that with django-paypal? Preferably with no means for the user to mess with it.
- Should i ditch the auto-generated button and roll my own instead? Will that let me pass extra invisible parameters that PayPal will send in the IPN later?
- The Sandbox doesn't let me make User Accounts that I can test on the real site, right? Unless I make a merchant in the Sandbox and make a button for that merchant, I think.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
1:如果您使用 django-paypal PayPalPaymentsForm 您可以指定包含用户名的“自定义”字段。这将与 IPN 一起寄回给您。如果您的按钮已加密,用户将无法对其进行篡改。
2:是,请参阅 1 :-)
3:否,但您可以在沙盒上创建买家和卖家帐户。
1: If you use the django-paypal PayPalPaymentsForm you can specify a "custom" field containing the username. This will be posted back to you with the IPN. If your buttons are encrypted the user will be unable to tamper with this.
2: Yes, see 1 :-)
3: No, but you can create buyer and seller accounts on the Sandbox.