我对文档有些困惑:In order for Stripe to compute the number of units consumed during the billing cycle, you must report the customer’s usage by creating usage records
然后:The usage reporting endpoint is rate-limited, so you might need to exercise caution and avoid making too many separate usage records.
那到底是什么意思呢?为一些客户增加使用量后,我的应用程序将停止运行吗?那我该怎么用呢?订单项?发票项目?
到目前为止,我已经创建了一个客户并将其订阅给计划。如何无限制地增加他的使用量,并且冒着我的应用程序无故中断的风险?
这仅表示,如果您有可能遇到限制速率的危险,则应采取一些措施来增加对 https://api.stripe.com/v1/subscription_items/{SUBSCRIPTION_ITEM_ID}/usage_records
例如,您的客户使用量每次增加时,都不必在那儿发布POST,而只需在您身边跟踪,并在计费周期结束时或在其他间隔每天进行一次POST。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句