#allianceRes

1 messages ยท Page 1 of 1 (latest)

acoustic iglooBOT
proud pebble
#

Hello ๐Ÿ‘‹
You can expand payment_intent on the latest invoice which should get you the client_secret in the response

bronze maple
#

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?

proud pebble
#

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.

bronze maple
#

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?

proud pebble
#

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)

bronze maple
#

I found the pending_setup_intent property, can you please help me to get the PaymentIntents?
Should I request it from backEnd or frontEnd?

proud pebble
#

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.

bronze maple
#

Ok I undrestandd, So how Can I find (or create) SetupIntent from pending_setup_intent value?

proud pebble
bronze maple
#

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?

waxen zinc
#

Hi ๐Ÿ‘‹

I'm stepping in for @proud pebble . Give me a minute to catch up

bronze maple
#

ok

waxen zinc
#

Okay so you would use the client secret to instantiate your Payment Element to collect payment method details from your customer

bronze maple
#

thank you!
can you please keep this ticket open so I can finish this tommorw? thank you