#Duane Friesen
1 messages · Page 1 of 1 (latest)
What payment method is this? I know you can hard code values to pass in when confirming the intent, but I don't think you can pre-fill it on the Payment Element's form if that is what you are working with
I am trying to pre-fill the Payment Element. Thanks! This confirms what we were seeing.
Gotcha, in that case one pattern that I have seen is hiding the name field within the Payment Element and presenting your own pre-filled input on your page. You can then pass the data from that in to the payment's billing details when confirming
HI there 👋 jumping in as my teammate needs to step away soon. If you already know customer details when your flow is creating the Payment Element, then you can pass that information in via defaultValues.billingDetails:
https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-defaultValues-billingDetails