#sushbhat
1 messages · Page 1 of 1 (latest)
Hey! What kind of fields are you updating?
mainly amount would change as cart items change and metadata
Are you using the Payment Element?
yes
Sure, so you'd make your update to the Payment Intent via your server/backend and then call elements.fetchUpdates() to update the Payment Element instance to reflect those changes on the Payment Intent: https://stripe.com/docs/js/elements_object/fetch_updates
so client can use same client secret?
Yes, the client secret doesn't change
You just need to tell Elements to refresh the instance to reflect the updates you made
ok,