#Max87
1 messages · Page 1 of 1 (latest)
Can you share an example seti_xxx?
Hmm, your integration flow is a little off-piste. Why attach a pm_xxx to the Setup Intent?
The idea is that you confirm the Setup Intent passing the collecting payment details from the front-end (Stripe.js) and then the successful Setup Intent created the pm_xxx
this flow works with dev env
Well your flow can work, but it's not really the happy path. When you confirm it server-side like this, and the status returned is requires_action, 3DS was requested and requires customer input. You need to return the client_secret to the front-end and call confirmSetup
to be clear - our BE creates setup intent, FE creates payment method, then calls update_setup_intent and then calls confirm_setup_intent
That way Stripe.js can handle the auth/3DS request with your customers
How do you plan on handling 3DS flows in these situations?
I thought that 3DS can be reason, there is three_ds_method_url but that url is not working
Did you use test cards that with trigger authentication requests during your testing? Or just the regular 4242 happy path? https://stripe.com/docs/testing#authentication-and-setup
we used all cards
Then how did you handle the requires_action status?
You can bypassing using Stripe.js, but you'll need some front-end component to send your customers through auth flow to complete the requested 3DS. There's no way around that: https://stripe.com/docs/payments/3d-secure#when-to-use-3d-secure
I can show webview with 3d secure url to user
Then do that. Details at the URL above
I'm missing 3d secure url to display
because next_action is not redirect_to_url but use_stripe_sdk
That's because you need to set a return_url when you create the Setup/Payment Intent: https://stripe.com/docs/api/setup_intents/create#create_setup_intent-return_url
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
okay, thank you. we need to make this changes on our BE, I'll let you know with updates