#VanessaD

1 messages · Page 1 of 1 (latest)

tough rampartBOT
sleek scaffold
#

Hi there!

#

No it's not possible to pre-fill the Payment Element.

#

But if the customer already have a saved payment method, you don't need to use the Payment Element at all.

sudden lance
#

you mean directly create a charge ?

sleek scaffold
#

You can use your own UI to display the existing payment method of the customer. And if they select it, yes you can directly create a PaymentIntent for that payment method

sudden lance
#

just using the "Retrieve a Customer's PaymentMethod" API call and after create a paymentint ?

sleek scaffold
sudden lance
#

ok thanks but it's in case of off_session, but in case of on_session, what can we do ?

sleek scaffold
#

You do almost the same thing but:

  • Remove off_session: true and confirm: true
  • And confirm the PaymentIntent from the frontend
sudden lance
#

ok perfect thanks

dark sleet
#

👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!