#mahraamir
1 messages · Page 1 of 1 (latest)
Gotcha then yeah you can prefill the values using defaultValues: https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-defaultValues
and can we hide these fields totally from payment element?
I mean Email and Full name?
Yes you can by setting them to never (https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-fields-billingDetails). You would then need to pass email/name to billingDetails in confirmPayment: https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-payment_method_data-billing_details