简体   繁体   English

更改订阅计划和计费差额

[英]Changing subscription plans and billing the difference

I am trying to implement seat based pricing but the documentation doesn't cover scenarios for changing plan mid subscription.我正在尝试实施基于座位的定价,但文档未涵盖更改计划中期订阅的方案。

For reference these are the docs I am following: https://developer.paypal.com/docs/api/subscriptions/v1/作为参考,这些是我关注的文档: https://developer.paypal.com/docs/api/subscriptions/v1/

Let me give you an example.让我给你举个例子。 Lets say I have this pricing:假设我有这个定价:

  • 1-10 seats $5 each per month 1-10 个座位,每个月 $5
  • 11+ seats $3 each per month 11+ 席位 $3 每个月
  • To mimic this in PayPal I create 2 quantity based subscription plans.为了在 PayPal 中模仿这一点,我创建了 2 个基于数量的订阅计划。 One with a quantity price of $5, the other for $3.一个数量价格为 5 美元,另一个为 3 美元。 Both plans are on the same product and have term set to monthly.两个计划都在同一个产品上,并且期限设置为每月。

There are a few situations I am unsure how to handle and cannot find this information in the docs.在某些情况下,我不确定如何处理并且无法在文档中找到此信息。 They are as follows:它们如下:

1) User signs up for 1 seat on the 1st June. 1) 用户在 6 月 1 日注册了 1 个席位。 On the 15th June they decide to change to 5 seats. 6 月 15 日,他们决定改为 5 个席位。 The docs say this will be adjusted in the "next billing cycle" but I am unclear what that means.文档说这将在“下一个计费周期”中进行调整,但我不清楚这意味着什么。 Their next billing cycle is in 15 days so does that mean they get access to 4 seats for free that month?他们的下一个计费周期是 15 天,这是否意味着他们当月可以免费获得 4 个席位? What I would want to happen is the difference is calculated.我想要发生的是计算差异。 The user has paid $5 so far and is halfway through the month so half a month cost is $2.50.到目前为止,用户已经支付了 5 美元,并且是一个月的一半,因此半个月的成本是 2.50 美元。 The new subscription price is $25.新的订阅价格为 25 美元。 So the remainder of the month would cost $12.50.因此,本月剩余的时间将花费 12.50 美元。 So the difference to pay is $10 to cover them to the end of the month with the additional seats until they will then be billed $25 for a full month.因此,支付的差额是 10 美元,以支付他们到月底的额外座位,直到他们将被收取 25 美元的整月费用。 Is this in anyway possible?这有可能吗?

2) User signs ups for 5 seats. 2) 用户注册 5 个席位。 They then upgrade to 20 seats halfway through the month which moves them onto a different plan to get discounted pricing.然后,他们在本月中途升级到 20 个座位,这使他们转向不同的计划以获得折扣价。 How does situation 1 play out again in this regard when changing plans?在改变计划时,情况 1 在这方面会如何再次出现? How are the differences calculated and billed?差异如何计算和计费?

It seems in the old billings API you could override the setup cost when creating the subscription but that no longer seems possible.在旧帐单 API 中,您似乎可以在创建订阅时覆盖设置成本,但这似乎不再可能。 It is not possible to add the setup cost to a plan because this needs to be added dynamically based on the elapsed time in billing cycle, change in seat quantity and change in plan cost.无法将设置成本添加到计划中,因为这需要根据计费周期中经过的时间、座位数量的变化和计划成本的变化动态添加。

Have PayPal really removed all possible ways of dealing with package upgrades? PayPal 是否真的删除了处理 package 升级的所有可能方式?

To have new arbitrary costs, setup or otherwise, you would need to dynamically create a bespoke package/plan for that particular checkout.要获得新的任意成本、设置或其他方式,您需要为该特定结账动态创建定制的套餐/计划。

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

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