#_greggles_
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- greggles, 5 days ago, 7 messages
Hello there
If you want to render Payment Element first then you can use the deferred intent flow: https://stripe.com/docs/payments/accept-a-payment-deferred
Hi there. Sorry for the general nature of the question but I'm a bit confused.
No worries
It is a common question
It used to be required to create a PaymentIntent first
But now we support the deferred-intent flow above which is likely what you want
The documentation looks like it's necessary to pass a currency amount rather than a subscription price ID.
That's correct -- that is so the correct Payment Method Types are shown to the customer
So we'd pass a default currency amount in order for the payment element to mount but do I need to change that amount if the customer chooses a different option?
You would want to update the amount using elements.update() on the frontend, yes. This ensures that things like wallets (Google Pay and Apple Pay) would show the correct amount.
https://stripe.com/docs/js/elements_object/update is the method I'm talking about
OK great, thank you.
Thank you @solar trench , this is helpful. If I have additional questions should I come back to this thread or create a new one?
Threads are closed after a period of inactivity but you can always post again in the main channel if that is the case!