#VanessaD
1 messages · Page 1 of 1 (latest)
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.
you mean directly create a charge ?
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
just using the "Retrieve a Customer's PaymentMethod" API call and after create a paymentint ?
Yes. You can see an example of this here: https://stripe.com/docs/payments/save-and-reuse?platform=web#charge-saved-payment-method
ok thanks but it's in case of off_session, but in case of on_session, what can we do ?
You do almost the same thing but:
- Remove
off_session: trueandconfirm: true - And confirm the PaymentIntent from the frontend
ok perfect thanks
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!