#jokamax
1 messages · Page 1 of 1 (latest)
(If I'm not clear : don't hesitate to say it to me)
I'd suggest using our official guides like https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements to handle the subscription creation on the frontend(where 3D Secure will be handled for you), instead
if you do want to do it the way you describe I don't think it's possible as there isn't a way to force the redirect_to_url action for Subscription PaymentIntents unfortunately
No We can't (and don"t want) to use stripe subscription. We handle simple payment, and repeating payment via stripe payment intent session_off
We use payment intent with session_off and somtimes it's OK and sometimes "requires_action" (Ok for that). I just want to now the correct way when we encouter requires_actions to finish payment
ok, then sure, what you say can work, it's https://stripe.com/docs/payments/3d-secure#manual-redirect .
Yes : After confirmation, if a PaymentIntent object displays the required_action state, confirm its next_action property. If set to redirect_to_url, 3DS authentication is required.
My question is : is it possible to use bakend object
paymentIntent.getNextAction().getRedirectToUrl().getUrl()
?
is it always filled in this case ?
that gives you the URL that the customer visits
it's filled in if you passed return_url when confirming the PaymentIntent and 3DS was then required
if you don't pass return_url the next action type will be use_stripe_sdk and there is no URL to access since it's assumed you'll use our frontend
Ok I understand
So last question on a production case
I have two type in production of requires_action :
https://dashboard.stripe.com/payments/pi_3O1sGpHagJ8u1cfk10WhMQV6
In case 1. json seem to have an URL (american express)
In case 2. json no have URL
Is the solution with returnUrl + redirectUrl will work for this case 2 ???
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Oups : I'll give you the pi_xxxx
- "pi_3O23VkHagJ8u1cfk0p9HILRO"
- "pi_3O1sGpHagJ8u1cfk10WhMQV6"
if you need a url you must pass return_url
it's wrong(and it's the mistake you're making) to try to find a URL inside the use_stripe_sdk object and redirect to that, that will not work consistently/at all. You need to pass return_url if you want to handle the redirect yourself.
Perfectly clear !
Thanks : i'll developpe the solution on this way