Stripe是否具有用于使用记录的Webhook?
当事件发生在帐户中时,Stripe使用Webhook通知应用程序。 Webhooks对于异步事件特别有用,例如客户银行确认付款,客户质疑费用,经常性付款成功,或者在收取订阅付款等时进行付款等。
但是,Stripe是否有任何Webhook来告知用法记录定价模型的应用程序?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Stripe的API今天没有使用Webhook用于使用记录。该API的使用量更高,大多数API并报告每个用法记录的事件可能在您的服务器和Stripe上可能是不可持续的。
最好的选择是在创建这些摘要API时自己跟踪记录:
There is no webhook for usage record today in Stripe's API. This API is used at a higher volume that most APIs and reporting an event for every usage record would likely be unsustainable on your servers and Stripe's.
The best option is to either track the records yourself as you create those or use the summary API: https://stripe.com/docs/api/usage_records/subscription_item_summary_list