Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须根据他们拥有的用户数量每月向我的客户收费。
所以,我制定了一个向用户收取 10 欧元/月的计划,但它只向他收取一次费用,我必须向它收取 10 欧元/用户的费用,所以,如果他有 5 个用户,我需要收取 50 欧元/月的费用.
我可以分配 10 次相同的计划,但是……我认为这不是实现这一目标的“正确方法”。
有什么办法吗?
谢谢!
每当用户数量发生变化时,您必须更新订阅,并将quantity字段设置为用户数量。
quantity
https://stripe.com/docs/api/curl#update_subscription