#rtj-paymentmethod-country

1 messages · Page 1 of 1 (latest)

oblique glacierBOT
lyric grail
#

rtj-paymentmethod-countr

#

rtj-paymentmethod-country

#

@devout pawn what do you mean "certain country" Like based on their billing details? Something else?

devout pawn
#

I want the setup intent to succeed only if the payment method's billing address is US

#

Based on billing address - yes

lyric grail
#

okay so are you collecting the billing address? Because we don't for card payments

#

we collect the country and postal code, but the full billing address, and that's assuming you use PaymentElement

#

is that what you're using?

devout pawn
#

Yes that's right. I am collecting the country and postal code.

lyric grail
#

are you? Or do you mean you use PaymentElement and we do it

devout pawn
#

I use the payment element to collect the billling details - card information + country + postal code.

#

Let me ask a question that is more up my alley - is there some field in the setup intent API using which I can block creation of intents for non-US payment method?

lyric grail
#

no

#

There are many different ways to do this, which is fundamentally based on how you integrate

rare shale
#

@devout pawn if you explain why you're trying to block non-US payment methods, it'll be clearer how to achieve what you want to do

lyric grail
#

I don't think the why is important

devout pawn
#

This is quite helpful, thank you

#

Let me look into these options!

lyric grail
#

#1 is the easiest 🙂

oblique glacierBOT