#LeoIno-french
1 messages · Page 1 of 1 (latest)
I create a setup intent to register customer card for off_payment
Then after use of a service, we charge the previously registered card
Got it! On the Payment Method object, there is a card.country property. You could use that to only allow french cards: https://stripe.com/docs/api/payment_methods/object#payment_method_object-card-country
Thanks, it's a good idea !
During the card registration, we just create or retrieve customerId and then a CardField object in react native to get Card details, then we call confirmSetupIntent to attach card details to customerId
We are not accessing paymentMethod unless payment is required
Do you think of another way to restrict card country.. Otherwise, i'll have to check card after being added to customer and remove them if country isn't FR. It's not so long but there is maybe another way to check card before it's attached to the customer account.
i'll have to check card after being added to customer and remove them if country isn't FR.
Yes, that's my suggestion. To check the country of the card you first need to have the card added to Stripe.