#jayon niravel-cards
1 messages · Page 1 of 1 (latest)
There isn't any dashboard option, but you could use Radar to block any card payments not from a US card (see https://stripe.com/docs/radar/rules#block-rules)
this will block the payments not adding the credit card right?
Well it depends on your integration - if you're using Elements and calling confirmCardPayment or confirmCardSetup then yes, using radar will prevent it from being successful and it won't be added
is it possible to add this elements while using the Stripe inframe? or is it only through API?
Hello! I'm taking over for @proven ether. Another approach here would be to use stripe.createPaymentMethod client-side, then check the card.country on the resulting Payment Method: https://stripe.com/docs/api/payment_methods/object#payment_method_object-card-country
You can then decide if you should proceed with the rest of your flow from there or not. Note you should send the Payment Method ID to your server and perform the country check there. If you do it client-side people can bypass it and use cards from other countries anyway.
Regarding your last question, I'm not sure I understand. Can you provide more details?
What do you mean by "add" exactly?
through Stripe iframe
I am creating setup intent , then I use that intent ID in the Stripe iframe script
then from the UI, I am adding the credit card
Make sure the Use Radar on payment methods saved for future use option is enabled here: https://dashboard.stripe.com/settings/radar
If that's disabled your Radar rules will not work on Setup Intents.
Thanks a alot. You guys are awesome! 😃