#shokhaa.3ds-redirect

1 messages · Page 1 of 1 (latest)

thick fiber
#

Hey! Can you share the ID of the Payment Intent? pi_xxx

prisma storm
#

pi_3JuFVUJjpkJSdYjB1igXggr3

thick fiber
#

Thanks, checking now

prisma storm
#

ok

thick fiber
#

The return_url field of a PaymentIntent cannot be updated

#

Why do you need to update that field? You'd need to create a new PI

prisma storm
#

"message": "The provided PaymentMethod has failed authentication. You can provide payment_method_data or a new PaymentMethod to attempt to fulfill this PaymentIntent again.",

#

if the 3d check has not passed then you need to create a new PI or what?

thick fiber
#

Are you handling the 3DS steps correctly with Stripe.js? What specifically is failing?

prisma storm
#

everything works out for me! just want to know!
if the 3d check has not passed then you need to create a new PI or what?

thick fiber
#

The current state of the Payment Intent you've shared is requires_action, which means there are 3DS auth steps to be completed with Stripe.js (using confirmPayment)

#

if the 3d check has not passed then you need to create a new PI or what?
Nope, you can re-attempt auth on a PI if the initial auth attempt failed

thick fiber
prisma storm
#

after a bad drink, this url does not work anymore! therefore, I updated the UI to get a new url, but when I update, the deplink disappears and becomes use_stripe_sdk

thick fiber
#

As I said, you can't update the return_url field on a Payment Intent. So you'll need to create a new PI if that URL is no longer valid

prisma storm
thick fiber
#

Yes, because the PI need authenticating (3DS) with Stripe.js

#

Upon successful authentication, the user will be redirected to the return_url

prisma storm
#

2nd screenshot after update

elder sparrow
#

If you need that field to persist, in may be better to add it as a key/value pair in the metatdata field rather than relying on a field that we also use for 3DS and other bank flows.
https://stripe.com/docs/api/metadata

prisma storm
#

have you seen the screenshots?

#

why will nextAction change automatically?

#

$stripeClient->paymentIntents->update('pi_3JuEQIJjpkJSdYjB1pagz4Dc', [
'payment_method' =>
'card_1JuBj2JjpkJSdYjBJkGhhCsR',
]);

elder sparrow
#

Because nextAction is the field that we use within our own libraries to handle 3DS redirects and other necessary bank redirects. You mentioned that the payment failed the 3DS check, which means we need to try completing the rest of that flow. So we then use the nextAction field to contain what the next action is and the necessary information to execute it.

prisma storm
#

If I want to use return_url as a deep link for Android in IOS, then I need to create a new PI after every unsuccessful 3D check?