PayPal修改订阅-付款标准
因此,我已将 PayPal 完全集成到我的系统中。该系统适用于用户“套餐”,全部按固定价格进行。每个用户都有一个分配给他们的 subscr_id(由 PayPal 设置),以及他们购买的套餐的详细信息。
我需要能够修改订阅,以便用户可以选择不同的套餐。本质上,我只需要能够更改金额和“自定义”字段(其中包含包裹详细信息、使用的优惠券等)。
我本以为并且希望它会像向用户显示另一个带有“修改”、“subscr_id”、“自定义”(新值)和“金额”(新值)隐藏字段的表单一样简单。不幸的是,我在网上找不到这个,而且 PayPal 的文档是如此单一,以至于我发现自己一次要绕几个小时。
我的 IPN 已全部设置完毕并且工作正常,我实际上只需要构建一个表单,允许我将“金额”和“自定义”变量设置为新的内容......我认为这很容易!非常感谢任何帮助。提前致谢。
So I've implemented PayPal fully into my system. The system works on user 'packages', all at set prices. Each user has a subscr_id (set by PayPal) assigned to them, along with details of the package they've bought.
I need to be able to modify the subscription so the user can select a different package. Essentially I just need to be able to change the amount and the 'custom' field (this contains package details, coupons used, etc).
I would have thought, and hoped, that it would be as simple as showing the user another form with hidden fields for 'modify', 'subscr_id', 'custom' (new value) and 'amount' (new value). Unfortunately I can't find this anywhere online, and PayPal's documentation is so monolithic that I find myself going round in circles for hours at a time.
My IPN is all set up and working fine, I literally just need to build a form that allows me to set the 'amount' and 'custom' variables to something new... the bit I thought would be easy! Any help is greatly appreciated. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我最近一直在研究这个。您可以创建“修改订阅”按钮来更改订阅详细信息,例如金额和期限。当用户单击此按钮时,他们将登录并查看旧订阅详细信息和新订阅详细信息,并且必须批准/保存才能生效。但一个主要问题是您只能在 10 天内将订阅金额增加 20%。
要创建修改订阅按钮,只需使用常规订阅 HTML 按钮以及所需的新参数,并添加额外参数“modify=2”(2=仅修改,1=修改或注册)。
另外,我认为即使您修改订阅,自定义变量字段也不会更改,但我对此并不 100% 确定。
I've been looking into this recently. You can create a "Modify Subscription" button to change subscription details such as amount and period. When the user clicks this button, they login and see the old subscription details and the new subscription details, and must approve/save it for it to take effect. One major issue though is you can only increase the subscription amount by 20% within a 10-day period.
To create the modify subscription button just use the regular subscription HTML button with the new parameters you want, and add an extra parameter "modify=2" (2=modify only, 1=modify or sign up).
Also I think that the custom variable field does not change even if you modify the subscription, but I am not 100% sure on that.
经过一番搜索后,希望这会有所帮助:
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_subscribe_buttons#id09A7G0502UI
After a wee bit of searching, hopefully this will help:
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_subscribe_buttons#id09A7G0502UI