#perry-setupintent-help
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Not sure I fully grasp the question. Taking a step back, can you share your usecase? What exactly are you trying to do?
Like are you trying to build a flow that let's customers store payment methods? If so, are you using Stripe Elements (like PaymentElement)?
Yes sure, give me a sec
So i am trying to store payment_methods and as of now i am using CardNumberElement, CardExpiryElement, CardCvcElement(for normal card) and PaymentRequestButtonElement (for apple pay)
After i have created setupIntent, i need to confirm the setupIntent via ID i receive in response of setupIntent creation
but while doing so we need to pass extra params,
createResponse.id,
{
payment_method: 'pm_card_<3DS>',
return_url: returnUrl
}
)```
What should be the payment_method here? according to https://stripe.com/docs/payments/3d-secure#three-ds-cards it can be pm_card_threeDSecure2Required or pm_card_threeDSecureRequired or few more
@floral kettle there's no reason to pass a payment method here. Which tutorial are you following?
perry-setupintent-help
https://stripe.com/docs/payments/accept-card-payments?platform=web&ui=elements is our canonical doc for CardElement, it works the same for PaymentIntent and SetupIntent. You're supposed to confirm client-side not server-side
where they have given "pm_card_visa" as payment_method as a hardcoded value, so how to we test for 3DS authentication under "pm_card_visa"? since no matter which card we provide the 3DS authentication window doesn't show up unless i provide 'pm_card_threeDSecure2Required'
in this case we are accepting payment, which is not my use case, i am saving card details of customer so i can charge in future but not right away
That is the exact same thing except you do a SetupIntent instead
but the overall flow and calls are identical
This doc says stripe.confirmCardPayment(clientSecret, { payment_method: { card: card, billing_details: { name: 'Jenny Rosen' } } })
And yours would be the exact same except you call confirmCardSetup() instead
okay, i get it now,
What would be the response of this confirmCardSetup ? and will this ask for additional steps like 3DS authentication?
It's a promise, same as what is in that doc
Really I recommend just trying it in Test mode to understand what's happening
okay let me try confirmCardSetup once and will be back
but with other API i have tried and just letting you know, even if you provide card number with 3DS authentication these API does not provide status "requires_action" but end up being "succeeded"
so not sure if card required 3DS authentication then how are going to handle such request
that's expected behaviour. You call confirmCardSetup() and we do 3DS for you and only respond after
Okay, let me try and be back ๐