#andi2631_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1313517421335805992
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, let me help you with this.
You can probably use Radar to block this kind of payments.
Yes but radar is only for payments? Because i want the card to be blocked when it is created
Alternatively, you can create a Confirmation Token (depending on your integration), and check the funding parameter: https://docs.stripe.com/api/payment_methods/object#payment_method_object-card-funding
How do you "create" cards?
With PaymentSheet in our front end
I mean, we "ask" our backend for customer, ephemeralKey, clientSecret. Then it finishes the creation with paymentSheet
Are you using SetupIntents?
Then Radar should be able to block that as well. I don't know the fine details about how it works, so you will need to consult the docs or Stripe Support.
Yes, we are using SetupIntents
I see. An alternative would be to create a ConfirmationToken, but I am no sure this works with Mobile Payment Element...
If you're using SetupIntents for verifying payment methods, I expect you should be able to block those setup intents from succeeding by enabling Radar to apply to setup intents:
But otherwise, if that still doesnt apply, then you;d need a separate payment detail collection flow as vanya suggests
Ok, something like. Get that payment an if it funding is prepaid detach it?
Yep, something like that. Inspect the payment method details and block or reactively detach, depending on whats possible.
payment_method_id - You can retrieve the PaymentMethod object using this ID to perform your own validation or business logic.
Based on your requirement you can proceed with confirmation or reject it and handle the error client side