#cheqo.

1 messages · Page 1 of 1 (latest)

mystic ferryBOT
hardy badge
#

Hi! Let me help you with this.

frail geyser
#

req_1hUOZl0rbhECfm

#

"pi_3NceKPCM9ezwNkwC1xfgGQBn"

hardy badge
#

You will need to authenticate it separately with an on-session PaymentIntent.

mystic ferryBOT
frail geyser
#

How do I do that? It seems like I am authenticating on session?

safe schooner
#

In your tests, you are using a card that requires always authentication 4000002760003184

frail geyser
#

I want to test cases where card needs authentication to be charged

#

so that I would present something to the user to complete the authentication

safe schooner
frail geyser
safe schooner
frail geyser
#

Yes, it did succeeded ✅, but I don't understand why on the docs payment_method is not listed as required property and it doesn't exist on the typescript?

Is this new api?

safe schooner
#

no, payment_method is required only for payment method that requires 3Ds

frail geyser
safe schooner
#

is there a way to know if certain card requires 3ds?
You can't know in advance, that's depends on the bank card issuer

frail geyser
safe schooner
#

you can add some checks on the API response, and add it just when needed, or added whenever an off session payment didn't passed on backend side

mystic ferryBOT
frail geyser
#

Thanks, so just to make sure, for paymentIntents that needs to reauthenticate, I can use stripe.confirmPayment ?

Because i see a method that explicitly confirms the card - stripe.confirmCardPayment

golden harness
#

you should use confirmCardPayment

frail geyser
golden harness
#

in the first case, no.

frail geyser
#

this is what I currently do

#

if I am using confirmCardPayment what would render the 3ds logic if not PaymentElement ?

golden harness
#

it just pops up on the page

frail geyser
#

okay, and user wouldnt need to reenter their card details, just the confirm the current card with their bank?

golden harness
#

yes

frail geyser