使用 Stripe 定期计费 - 订阅就足够了吗?
Recurring billing with Stripe - will Subscriptions suffice?
我的应用程序允许客户购买 credits 供以后在应用程序内使用。
我想让客户能够在整个月内购买积分,并且只在月底结算。
我是否应该以 等于一个信用的价格 的数量使用条纹订阅,并根据 数量 客户购买了多少积分?
(开票成功后 - 我将将订阅数量重置为 0)
有更好的解决办法吗?也许是一些使用 Stripe Checkout 的巧妙方法?
您提出的方法听起来很合理。
我没有尝试过,但我能想到的替代方案是使用免费计划和 API 的发票项目部分。
创建一个免费计划,其中 amount field 设置为 0。据我从文档中看到的,应该为订阅的客户触发所有订阅生命周期 webhook计划。
整个月,为客户创造 InvoiceItems。根据文档,在结算周期结束时,这些 InvoiceItems 会添加到客户的发票中。
Sometimes you want to add a charge or credit to a customer but only actually charge the customer's card at the end of a regular billing cycle. This is useful for combining several charges to minimize per-transaction fees or having Stripe tabulate your usage-based billing totals.
除此之外,您还需要考虑是否应该使用 Stripe generate/email 您的发票。
我不认为这是要走的路,因为订阅会在第一次等其他事项中收费。
推荐方式为:stripe doc: Place a hold on a card
总结
- 您首先请求授权一定数量(最大数量)。例如:1000$
- 您的客户在该月购买了 50 个积分
- 月底您向客户收取 50 美元(不能大于您在第一步中授权的最高金额)
就这些了:)
我的应用程序允许客户购买 credits 供以后在应用程序内使用。
我想让客户能够在整个月内购买积分,并且只在月底结算。
我是否应该以 等于一个信用的价格 的数量使用条纹订阅,并根据 数量 客户购买了多少积分?
(开票成功后 - 我将将订阅数量重置为 0)
有更好的解决办法吗?也许是一些使用 Stripe Checkout 的巧妙方法?
您提出的方法听起来很合理。
我没有尝试过,但我能想到的替代方案是使用免费计划和 API 的发票项目部分。
创建一个免费计划,其中 amount field 设置为 0。据我从文档中看到的,应该为订阅的客户触发所有订阅生命周期 webhook计划。
整个月,为客户创造 InvoiceItems。根据文档,在结算周期结束时,这些 InvoiceItems 会添加到客户的发票中。
Sometimes you want to add a charge or credit to a customer but only actually charge the customer's card at the end of a regular billing cycle. This is useful for combining several charges to minimize per-transaction fees or having Stripe tabulate your usage-based billing totals.
除此之外,您还需要考虑是否应该使用 Stripe generate/email 您的发票。
我不认为这是要走的路,因为订阅会在第一次等其他事项中收费。
推荐方式为:stripe doc: Place a hold on a card
总结
- 您首先请求授权一定数量(最大数量)。例如:1000$
- 您的客户在该月购买了 50 个积分
- 月底您向客户收取 50 美元(不能大于您在第一步中授权的最高金额)
就这些了:)