#rkshakya07
1 messages · Page 1 of 1 (latest)
What specifically are you trying to update?
I want to give users/customers a feature that they can change there country & it's should change the payment methods accordinly
Got it. How would they be changing their country?
We are thinking to provide a picklist of countries
Right, but what field are you setting on the related Payment Intent? The payment methods on the Payment Element generally reflect customer location (IP) and currency
What you can use is fetchUpdates on the Elements instance: https://stripe.com/docs/js/elements_object/fetch_updates
That will update the Payment Element to reflect any changes to the underlying Payment Intent (such as amount, currency). There's a demo here: https://stripe-tinydemos-payment-element-update.glitch.me/