#cnguyen85
1 messages · Page 1 of 1 (latest)
You'd look at the result hash when the Promise resolves, or listen for async webhook events which will include details of the outcome
Hi
result hash ? Can I have more explanation please
it(s to add track so he has to be in the front part
When you call confirmCardSetup it returns a Promise that will resolve when your customer clicks pay and completes 3DS/auth if requested. Once resolved, there's a result hash in the response that contains details of the outcome (i.e. success/failure): https://stripe.com/docs/js/setup_intents/confirm_card_setup
And in the result, I can know if the 3DS was displayed or not ?
I want to know if the 3DS is displayed. Not only the result at the end if it's a success or not
Hmm, thinking
I think you need to use handleActions: false in this case: https://stripe.com/docs/js/setup_intents/confirm_card_setup#stripe_confirm_card_setup-options-handleActions
You'd check the response of the confirmCardSetup call and if it contains a next_actions hash then 3DS was requested and you can redirect users to the URL
it means that we have to handle the 3DS by ourself ?
Not exactly, you'd just redirect them to the URL that is returned: https://stripe.com/docs/payments/payment-intents/verifying-status#next-actions
Yes so we have to handle the 3DS displaying by ourself?
The confirmCardSetup method normally just handles that redirect automatically if required, but if you want to specifically know if 3DS was requested then you need to opt out of that automatic redirect
As I said, you'd just redirect them to a URL. You're not required to handle anything outside of that