#g105b-payment-element
1 messages · Page 1 of 1 (latest)
Hi 👋 no you can't prefill that field, but if you've already collected it elsewhere in your flow then you can prevent the Payment Element from prompting for it:
https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-fields-billingDetails-address-postalCode
and then pass the value that you collected to us when confirming the payment:
https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-payment_method_data-billing_details