#monobot-payment-portal
1 messages · Page 1 of 1 (latest)
not sure I understand, can you detail what you mean by
How can I trigger a new payment, for a subscription before the final of the period?
Hello hmunoz
clients subscribe via stripe payment portal, so a subscrption is created, the subscription covers 1 year to make use od a number of api calls in our system.
But some clients expend those api calls before the end of the year.
So how should I proceed to make a new charge for such clients?
@eternal plover
Hey monobot! So you're saying you allow say 1000 API calls for $100 a year and then if someone makes more calls than that you want to charge them extra?
Usually your business model relies on metered billing so you might want to read https://stripe.com/docs/products-prices/pricing-models#usage-based-pricing
yes, but its more like a prepayment of x calls that you have a year to make use, then a new prepayment of X more calls with a new year to use them
not exactly like the case in the docs
I see so if I pay for a year and then I use all my calls you want me to "repay" for an extra year?
you pay for a number of calls and you have a year to use them
In that case you want to set billing_cycle_anchor: 'now' to reset the yearly billing cycle immediately and charge for a whole year: https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_cycle_anchor
You also want to disable proration since you don't want to give them any credit back for what they paid before (since they used it all) so you pass proration_behavior: 'none' https://stripe.com/docs/api/subscriptions/update#update_subscription-proration_behavior