#bhaal22-inspect-country
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- Bhaal22, 2 hours ago, 13 messages
- Bhaal22-account-object, 4 days ago, 30 messages
- Bhaal22, 6 days ago, 5 messages
Do you need the country before card has been tokenized or after?
If after, then you could fetch the generated payment method and look at the country field
https://stripe.com/docs/api/payment_methods/object#payment_method_object-card-country
Don't believe there's a way to determine the country of the card before it has been tokenized
i would like to forbid a payment to finalize
for some countries
my merchant is in UK and wold like us to forbid non-UK cards
One option is that you geolocate your customer and prevent them from checking out if they're outside of the UK
The other is to use Radar and create a block rule for payment methods that are outside of UK
https://stripe.com/docs/radar/rules/reference
we are on Stripe Connect
we have connect accounts from UK / France / ...
I dont think I can make such a rule
Are you creating direct charges or destination charges?
money is going onto my platform, and we send charges to connected accounts
and geolocating is useless, a person can be physically in UK but still frauding with an AUS card
whic is the case
How many connected accounts are you working with?
One option would be to write radar rules specific for a connected account like
https://stripe.com/docs/radar/rules/supported-attributes#other-payment-details
i.e. block if destination account is acct_xxx (in UK) and card_country is not UK
the only other option would be to collect payment details before creating the intent
https://stripe.com/docs/payments/accept-a-payment-deferred
this tokenizes the payment method prior to processing a payment, so you should be able to inspect the country and then decide to create or not create the PaymentIntent
👍
bhaal22-inspect-country
and by chance, do you know how to inject customer details in a payment intent or payment method?
i did not find the doc
what sort of information are you looking to inject?
Billing information?
If so, you could pass them in when calling confirmPayment under confirmParams.paymnet_method_data.billing_details
https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-payment_method_data