简体   繁体   English

贝宝修改订阅-付款标准

[英]PayPal Modify Subscription - Payment Standard

So I've implemented PayPal fully into my system. 因此,我已经在我的系统中完全实现了PayPal。 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. 每个用户都有一个分配给他们的subscr_id(由PayPal设置),以及他们所购买软件包的详细信息。

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). 我本来以为并希望如此,就像向用户显示具有隐藏字段的另一种形式一样简单,这些字段包含“修改”,“ subscr_id”,“自定义”(新值)和“金额”(新值)。 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. 不幸的是,我在网上找不到任何东西,而且PayPal的文档如此单一,以至于我一次只能绕几个小时转圈。

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! 我的IPN都已经设置好并且可以正常工作,我实际上只需要构建一个表格,就可以将'amount'和'custom'变量设置为新的东西了……我认为这很容易! Any help is greatly appreciated. 任何帮助是极大的赞赏。 Thanks in advance. 提前致谢。

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. 不过,一个主要问题是,您只能在10天内将订阅量增加20%。

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). 要创建修改订阅按钮,只需将常规订阅HTML按钮与所需的新参数一起使用,然后添加一个额外的参数“ modify = 2”(2 =仅修改,1 =修改或注册)。

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. 另外,我认为即使您修改订阅,自定义变量字段也不会更改,但是我对此并不百分百确定。

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 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. 如果您在2009年10月15日之后成为PayPal商家,则可以编辑买家的订阅资料。

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. 使用此页面可以更新买家信息,调整订阅的费用或周期以及指定如何处理丢失或失败的付款。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM