#Linas
1 messages ยท Page 1 of 1 (latest)
Hello ๐
The quick start guide is just an example, you don't necessarily need to build your app that uses the same flow. You can create a PaymentIntent on let's say a button click if that helps
hmmm, but does it work with apple pay then ? i think, that apple pay button is generated through thatp rocess?
If you change your flow then you must change how the button renders too ๐ The example is only for your reference!
But yes, the button will render if you provide it client-secret later on
ohh jeeez, i'm not strong at javascript.. and if i want user allow to change amount, then i have to use paymentintent update feature ?
Yes, you'll need to update the PaymentIntent with the amount and re-render the elements
is there any premade examples how to re/render button?
I don't think we have any examples for this unfortunately.
This is the method that you want fetchUpdates()
https://stripe.com/docs/js/elements_object/fetch_updates
It'll basically retrieve updates from the PaymentIntent and update the elements accordingly
thank you, i will take a look.
NP! ๐ Good luck