#cnguyen85

1 messages · Page 1 of 1 (latest)

vagrant sparrowBOT
tight relic
#

You'd look at the result hash when the Promise resolves, or listen for async webhook events which will include details of the outcome

brazen kiln
#

Hi

#

result hash ? Can I have more explanation please

#

it(s to add track so he has to be in the front part

tight relic
brazen kiln
#

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

tight relic
#

Hmm, thinking

#

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

brazen kiln
#

it means that we have to handle the 3DS by ourself ?

tight relic
brazen kiln
#

Yes so we have to handle the 3DS displaying by ourself?

tight relic
#

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

tight relic
brazen kiln
#

ok

#

And in the result (or error), there is no indication to tell us that ? Or, at least, to tell us if the error is because the 3DS is failed ?

tight relic
#

Well result.error would contain details of the 3DS failure yes: setup_intent_authentication_failure

#

I recommend trying out passing handleActions: false to your confirmCardSetup call and see how it works