更新 Rails 中的定期付款配置文件
我已经在我的 Rails 应用程序中实现了定期贝宝计费。一切进展顺利。我可以更新金额并可以取消个人资料中的所有内容。
现在我的问题是,当用户升级他的套餐时,我想向他收取额外费用,同时更新新套餐的实际金额。我对此感到震惊。任何人都可以帮助我吗?
提前致谢, 维杰
I have implemented Recurring paypal billing in my rails application. It is going on well. I can able to update amount and can cancel profile every thing.
Now my problem is, when a user upgraded his package, I would like to charge him the extra amount along with updating the actual amount for the new package. I have strucked with this. Can any one help me.
Thanks in advance,
Vijju
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“更新账单金额
对于使用 Express Checkout 创建的个人资料,您可以在个人资料创建后的固定 180 天间隔内将经常性付款总额最多增加 20%。20% 的最大值基于个人资料在创建时的总金额。 180 天间隔的开始时间,包括任何运费或税费,
例如,如果您在 3 月 10 日创建了一个总金额为 100 美元的配置文件,则在 3 月起的 180 天间隔内。从 10 月 10 日到 9 月 6 日,您可以将金额增加到最高 120 美元(100 美元的 120%)。
假设您在下一个 180 天间隔内(从 9 月开始)将付款金额增加到 110 美元。 7),您最多只能将付款金额增加到 132 美元(110 美元的 120%)。”
"Updating the Billing Amount
For profiles created using Express Checkout, you can increase the recurring payment total amount by 20% maximum in a fixed 180-day interval after profile creation. The 20% maximum is based on the total amount of the profile at the beginning of the 180-day interval, including any shipping or tax amount.
If, for example, you create a profile on March 10 with a total amount of $100, during the 180-day interval from March 10 to September 6, you can increase the amount to a maximum of $120 (120% of $100).
Suppose that during the first 180-day interval, you increased the payment amount to $110. During the next 180-day interval (starting September 7), you can only increase the amount of the payment to a maximum of $132 (120% of $110)."