#AJ95
1 messages ยท Page 1 of 1 (latest)
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
Yep, you need to use Stripe.js methods to confirm the PI. You shouldn't really be handling the redirect yourself
This part: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements#complete-payment
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
I am trying to follow the following https://stripe.com/docs/payments/3d-secure#manual-redirect
I guess you're not passing the return_url param on confirmation
Can you share the pi_xxx?
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...
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
we will I just need to fix this so users can pay
Right, so why not just add Stripe.js now? Otherwise you're going to be handling 3DS redirects yourself which is just overly complicated
sorry 1 more question, I still don't understand what should I pass on confirmation as return_url, where do I get it from
It's the URL you want your users returned to after they complete 3DS/auth: https://stripe.com/docs/api/payment_intents/create#create_payment_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.
because they need it fix asap, and we we tried to use stripe.js I remember we found it hard to customize the css as tehy require very custom "designs"
When you specify a return_url the next_action hash will contain the URL for you to send users to to do 3DS, and then they'll be sent back to the return_url. This is all highlighted here: https://stripe.com/docs/payments/3d-secure#manual-redirect
thank you very much ๐ saving my life