#juchom-subcriptionupdate-confirmation

1 messages ยท Page 1 of 1 (latest)

uncut tigerBOT
worldly geode
#

Hi ๐Ÿ‘‹

So you are specifically looking for how to generate the revised amount before you attempt to charge your customer?

cloud geyser
#

I think I saw a way to have a button like "Pay 12โ‚ฌ"

#

I would like to avoid automatic charging on subscritption update

worldly geode
#

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).

cloud geyser
#

ok, but if I don't have a default payment on my subscription will cycle billing work off_session ?

worldly geode
#

No. What is it you are trying to achieve here, in a larger customer flow sense?

cloud geyser
#

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

worldly geode
#

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.

cloud geyser
#

This is perfect thanks !

worldly geode
#

Great ๐ŸŽ‰ Happy to help ๐Ÿ™‚

cloud geyser
#

๐Ÿ‘