#Aovee - PaymentElement

1 messages · Page 1 of 1 (latest)

mint basin
#

Hi there!

#

So if I understand correctly, you would like to prefill the PaymentElement with the default payment method of the customer?

quick needle
#

Yes, exactly!

mint basin
#

But why are you collecting the payment method detail if the customer already has a saved payment method?

quick needle
#

Hmm... you got me there...

#

Yeah, you're right, that is a much better process

mint basin
#

If you already have a payment method saved, you can directly try to charge it with a PaymentIntent and confirm: true.

quick needle
#

Yeah, I'll do that, and let the customer choose if he wants to use a different payment method.

#

Thank you very much for the advice, I feel dumb not thinking about it earlier 😅