#juchom-subcriptionupdate-confirmation
1 messages ยท Page 1 of 1 (latest)
Hi ๐
So you are specifically looking for how to generate the revised amount before you attempt to charge your customer?
I think I saw a way to have a button like "Pay 12โฌ"
I would like to avoid automatic charging on subscritption update
Okay that's a whole different topic. You can avoid it by not setting a default payment method on either the Customer or the Subscription and then using the latest_invoice.payment_intent to identify the amount to be paid and render the Stripe Payment Element (or Card Element).
ok, but if I don't have a default payment on my subscription will cycle billing work off_session ?
No. What is it you are trying to achieve here, in a larger customer flow sense?
When a customer create its subscription, we have a payment page saying you will pay 20โฌ each month
Then each month payment is automatically made off_session.
In case my customer wants to add one more seat, I want him to confirm the purchase with the proration price.
The fact is, it does not make sense ๐
Writing this, I understood I'm just looking for a confirm action
This has nothing to do with stripe
No problem, talking it out can help clarify the path forward. One thing you might consider is using the Upcoming Invoice API to preview the change in amounts
https://docs.stripe.com/api/invoices/upcoming
You can specify your new parameters to see what the next invoice would be. Then ask the customer to confirm the change.
This is perfect thanks !
Great ๐ Happy to help ๐
๐