#allianceRes
1 messages ยท Page 1 of 1 (latest)
Hello ๐
You can expand payment_intent on the latest invoice which should get you the client_secret in the response
thank you,
How can I know that my payment requires 3DS,
what i have to rely on in payment_intent's answer to know if the payment needs frontend authentication or not?
If you're using confirmPayment client-side then Stripe.js takes care of redirecting automatically. Otherwise you can look at the PaymentIntent status , if its requires_action then some action on the client-side is needed.
what about suscriptions with free trial?
I don't have a payment_intent so how can I manage authentification if the suer pay with 3DS card?
Subscriptions with free trials have a $0 invoice so there aren't any PaymentIntents. However, they'd have a SetupIntent so that you can collect the payment method information (should be under pending_setup_intent property)
I found the pending_setup_intent property, can you please help me to get the PaymentIntents?
Should I request it from backEnd or frontEnd?
SetupIntent is not the same thing as PaymentIntents. These are two different objects.
SetupIntent is for when you need to save a payment method without charging. However, SetupIntent also has a clientSecret similar to PaymentIntents which can be used to render Elements and collect payment method information.
Ok I undrestandd, So how Can I find (or create) SetupIntent from pending_setup_intent value?
If your subscription has a trial then the Subscription object will create a SetupIntent automatically.
https://stripe.com/docs/api/subscriptions/object#subscription_object-pending_setup_intent
https://stripe.com/docs/billing/migration/strong-customer-authentication#scenario-2
Thank you for your patient with me, now I have this client secret :
"seti_1MTTHXGfA2lQACd1hI1GLKac_secret_NDv7OhjPsXmSEZ2afrjE3wnKMNhxJTq"
I give it to the front End and what is the next step please?
Hi ๐
I'm stepping in for @proud pebble . Give me a minute to catch up
ok
Okay so you would use the client secret to instantiate your Payment Element to collect payment method details from your customer
thank you!
can you please keep this ticket open so I can finish this tommorw? thank you