#bachir-3ds-manual

1 messages · Page 1 of 1 (latest)

slow orbitBOT
zealous reef
#

How are you collecting payment method details currently?

#

Are you wanting to handle 3ds redirection manually?

slow orbitBOT
stuck wagon
#

Yes we handle 3DS manually.

  • We use the card element to collect the payment method
  • We attach it to the customer and set it as default
  • We create the subscription
  • If the subscription.latest_invoice.payment_intent has a next_action (such as 3DS), so when next_action.type='use_stripe_sdk, we return the information to the client so it can trigger the 3DS flow, but we need an URL (like with one-time payments where passing a return_url is allowed), but it doesn't seem like we can pass one when creating the subscription
fair basin
#

Hi 👋 I'm stepping in as @zealous reef needs to go.

Can you provide an example payment intent ID that reflects this state?

stuck wagon
#

sure, let me check

#

In the createStripeSubscription response, in the payment_intent object, there is no return_url information. Do I have to refetch the payment intent from Stripe again ?

fair basin
#

Do I have to refetch the payment intent from Stripe again ?
I'm not sure I understand what you mean here.

#

But I do see a return URL of http://localhost:8082/three-d-secure-succeed in the Payment Intent object