#andi2631_api

1 messages ¡ Page 1 of 1 (latest)

cinder gullBOT
#

👋 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.

main phoenix
#

Hi, let me help you with this.

#

You can probably use Radar to block this kind of payments.

mighty shuttle
#

Yes but radar is only for payments? Because i want the card to be blocked when it is created

main phoenix
mighty shuttle
#

With PaymentSheet in our front end

#

I mean, we "ask" our backend for customer, ephemeralKey, clientSecret. Then it finishes the creation with paymentSheet

main phoenix
#

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.

mighty shuttle
#

Yes, we are using SetupIntents

cinder gullBOT
mighty shuttle
#

Stripe radar dont have rules for this

main phoenix
#

I see. An alternative would be to create a ConfirmationToken, but I am no sure this works with Mobile Payment Element...

inner dew
#

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

mighty shuttle
#

Ok, something like. Get that payment an if it funding is prepaid detach it?

inner dew
#

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