#Benoît

1 messages · Page 1 of 1 (latest)

bronze forgeBOT
outer ermine
#

Hi there! Sorry for the delay. Do you have the PaymentIntent ID for this test?

desert epoch
#

No problem !

#

Yes

#

pi_3NQca9AYYvne95SH2eL9VqCv

outer ermine
#

Looking!

desert epoch
#

🙌

outer ermine
#

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

desert epoch
#

Arf

#

Could i save the payement method before ?

outer ermine
#

This allows you to create the PaymentMethod via Elements first, then create the PI

desert epoch
#

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 ?

outer ermine
#

Not sure I follow. I see the PI is being automatically created as part of a request to create a Subscription.

desert epoch
#

Yes, a PI is created, but its automaticaly created when i create the "parent" invoice

outer ermine
#

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)

desert epoch
#

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

bronze forgeBOT
outer ermine
desert epoch
#

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 ?

outer ermine
#

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

Manage customer relationships with your business.