#dl - prefill payment element info

1 messages · Page 1 of 1 (latest)

zinc adder
#

I don't think you can do that at the moment but you can get very similar behavior with a bit of custom code on your page

#

So for email as shown in your doc, in the payment element you unfortunately can't guarantee that it will show up for every payment method. By default it will only show up for payment methods that will absolutely require it.

Here, I think your best bet is to tell the payment element to never show the email field and then provide your own email field which you pre-populate with the email from your customer. https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-fields-billingDetails-email

#

And then you can provide the value of that field in the billingDetails hash when confirming your payment

fresh marsh
#

ok, thanks. I'm actually more interested in the card number, expiration, cvc, zip