#AJ95

1 messages ยท Page 1 of 1 (latest)

restive eagle
#

Hello! What's the issue?

analog ruin
#

hello, thank you for your help
we are using stripe for subscription purposes

after a payment method is attached to the customer we create a subscription for him

unfortunately we pushed live without checking 3d secure cards which require an additional step

yesterday one of the admins provided me with this useful link https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements

meanwhile I just need to fix this issue for the short term

what Im doing is checking if the subscription I create have a status of incomplete

if so I get the latest payment intent created and confirm it

I was expecting that the next action of the payment Intent would return a redirect_)url after I confirm it so that I could redirect the user, but it still returns null and a type of use_stripe_sdk

Create and manage subscriptions to accept recurring payments.

restive eagle
#

Yep, you need to use Stripe.js methods to confirm the PI. You shouldn't really be handling the redirect yourself

analog ruin
#

I understand that I shouldn't and we need to fix it, but why cant we retreive the RedirectToUrl from the next action object of the payment intent

restive eagle
#

I guess you're not passing the return_url param on confirmation

#

Can you share the pi_xxx?

analog ruin
#

pi_3LfM5GLwViSoPrgv0dtLcrfW

#

I think I misunderstood the use of the return_url... I thought its the url I will have to redirect the user to when Authentication is required...

restive eagle
#

It does, but if you want to handle redirects yourself then you need to pass it on confirmation. Otherwise it defaults to Stripe.js usage

#

I'd just recommend using Stripe.js, honestly

analog ruin
#

we will I just need to fix this so users can pay

restive eagle
#

Right, so why not just add Stripe.js now? Otherwise you're going to be handling 3DS redirects yourself which is just overly complicated

analog ruin
#

sorry 1 more question, I still don't understand what should I pass on confirmation as return_url, where do I get it from

restive eagle
analog ruin
restive eagle
analog ruin
#

thank you very much ๐Ÿ™ saving my life