PayPal修改订阅-付款标准

发布于 2024-10-16 10:18:26 字数 407 浏览 1 评论 0原文

因此,我已将 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 技术交流群。

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

发布评论

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

评论(2

土豪 2024-10-23 10:18:26

我最近一直在研究这个。您可以创建“修改订阅”按钮来更改订阅详细信息,例如金额和期限。当用户单击此按钮时,他们将登录并查看旧订阅详细信息和新订阅详细信息,并且必须批准/保存才能生效。但一个主要问题是您只能在 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.

久隐师 2024-10-23 10:18:26

经过一番搜索后,希望这会有所帮助:

https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_subscribe_buttons#id09A7G0502UI

如果您在 2009 年 10 月 15 日之后成为 PayPal 商家,则可以编辑买家的订阅资料。

作为订阅服务提供商,您可以在“编辑个人资料”页面中编辑买家的订阅个人资料。使用此页面可以更新买家信息、调整订阅费用或周期,以及指定如何处理丢失或失败的付款。

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

If you became a PayPal Merchant after October 15, 2009, you can edit a buyer’s subscription profile.

As a subscription service provider, you can edit a buyer’s subscription profile in the Edit Profile page. Use this page to update buyer information, adjust the cost or cycles of the subscription, and specify how to handle missing or failed payments.

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