#Benoît
1 messages · Page 1 of 1 (latest)
Hi there! Sorry for the delay. Do you have the PaymentIntent ID for this test?
Looking!
🙌
Okay, so you can't confirm the PI later since the original confirmation attempt will not automatically create a PaymentMethod object until the 3DS flow is completed
You might want to look into using this flow instead: https://stripe.com/docs/payments/accept-a-payment-deferred
This allows you to create the PaymentMethod via Elements first, then create the PI
Hum, in fact, i don't really create the PaymentIntent. My customer is able to add some plans and one-times on a same invoice. After i created this invoice, i get the linked PI
Maybe there is a way to pass a parameter to have the same result as in your example ?
Not sure I follow. I see the PI is being automatically created as part of a request to create a Subscription.
Yes, a PI is created, but its automaticaly created when i create the "parent" invoice
If your intent is to collect a customer's payment details now in order to create a charge later (when they're off session), I recommend using SetupIntents intead
SetupIntents still require the customer to complete any 3DS authentication flows now (before a PM is created)
That's what i intend to do, but before all this, i would manage the use case i wrote
Maybe i have a simplier question. How can i just create a new payment method from a Payment Element form ? Without doing anything else after
Basically steps 1-4 here but any created PMs should be used for a payment or a SetupIntent: https://stripe.com/docs/payments/build-a-two-step-confirmation
Thank you.
In fact, i need my customer to be able to update his payment method, for example if his credit card expired, and his subscription will be charge some days after. Does it make sense for you, or would you advise me an proper way ?
I recommend using SetupIntents in order to collect payment details from customers if you intend to charge them later when they're off session. Without having more information, you could look into using the customer portal to allow customers to add/update/delete PaymentMethods: https://stripe.com/docs/customer-management