Django、PayPal IPN 和用户名 - 概念问题

发布于 2024-09-11 04:38:07 字数 455 浏览 2 评论 0原文

我正在尝试在 Django 中使用 PayPal(已经实现了 Zong+)来销售虚拟商品。我决定使用 django-paypal 为我处理 IPN(认为 IPN 是最好的全自动选项。)

我目前已经使用他们网站上的 PayPal 按钮向导制作了一个立即购买按钮,即它是安全的并保存在paypal 以防止篡改。 (我对 PayPal 很陌生,没有生活在完全支持的国家/地区,因此我自己没有使用过它。)

我的问题:

  1. 如何包含进行购买的用户名或识别进行购买的用户的类似方法稍后使用 IPN 回调购买并使用 django-paypal 检索?最好没有办法让用户弄乱它。
  2. 我应该放弃自动生成的按钮并滚动自己的按钮吗?这会让我传递 PayPal 稍后在 IPN 中发送的额外不可见参数吗?
  3. 沙盒不允许我创建可以在真实网站上测试的用户帐户,对吧?我想,除非我在沙盒中创建一个商人并为该商人创建一个按钮。

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:

  1. 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.
  2. 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?
  3. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

裂开嘴轻声笑有多痛 2024-09-18 04:38:07

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文