#Eugene Bakhmetiev

1 messages · Page 1 of 1 (latest)

oblique templeBOT
torn nacelle
#

Can you explain what exactly is happening currently that's not working like you expect?

long warren
#

It's less about not working as expected, and more of asking for advice, I guess.
I have Address Element and Payment Element integrated into my checkout process. Is there a way to automatically hide restricted payment methods from Payment Element, if user either
a) selects address outside of US, or
b) if user's IP address is outside of US ?

The only solution I could come up with at the moment is to not use automatic_payment_methods: { enabled: true } when creating paymentIntent, and adjust the list of payment methods manually when user changes the shipping address