#anton-dekhtyar_api

1 messages ¡ Page 1 of 1 (latest)

somber wrenBOT
#

👋 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/1265978667784474665

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

umbral oracle
#

hi! hmm, why only Amex? what happens if a customer wants to pay you and doesn't have an Amex?

#

at a technical level it can be possible to integrate this but it's a bit complex so I want to understand more before getting into it.

worldly pollen
#

I have payments with other cards and methods. Amex will be an alternative payment method through Stripe. I don't need the rest of the cards in the iframe.

umbral oracle
#

why don't you process the other cards through Stripe as well?

somber wrenBOT
worldly pollen
#

customer requirement

icy crystal
#

Then you're going to need to implement a server-side confirmation flow that allows you to tokenise the card details in the Payment Element and handle any custom logic before processing the payment. So in your case you can check the brand of the card and prevent payment: https://docs.stripe.com/payments/finalize-payments-on-the-server

Build an integration where you render the Payment Element before you create a PaymentIntent or SetupIntent, then confirm the Intent from your server.

worldly pollen
#

Can the icons of other cards be removed only with styles?

icy crystal
#

Not today

worldly pollen
#

This is impossible?

icy crystal
#

To hide the icons in the Payment Element? Yes

worldly pollen
#

Please tell me why the method you proposed is better than what I was thinking of doing? Before submitting, I check the entered card at the front, and if it is not Amex, I return an error.