#fiery_papaya-update-amount-elements
1 messages · Page 1 of 1 (latest)
Hey there! Are you creating the intent up front or using the deferred intent approach?
i am creating the intent up front
I suspect you're using the intent first flow
ok yea
Try calling elements.fetchUpdates() instead, after you make the update server-side: https://stripe.com/docs/js/elements_object/fetch_updates
Is there a preferred way (intent first vs deferred intent)?
Okay thanks I tried it and it seems to be working with google pay on my local server
It depends on your own needs and payment flows, really, whatever is more ergonomic for you.
I'll need to try it with apple pay and i'll keep you updated! Thanks a lot
Okay thanks!