#priya_97027
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- priya_97027, 2 hours ago, 6 messages
- priya_97027, 20 hours ago, 7 messages
- priya-paymentelement-errors, 22 hours ago, 9 messages
- priya-paymentelement-requirements, 23 hours ago, 16 messages
- priya_97027, 5 days ago, 10 messages
- priya-elements-ready, 5 days ago, 6 messages
and 2 more
Hi 👋 if you already have some related information when creating your Payment Element, you can provide those details via the defaultValues parameter:
https://docs.stripe.com/js/elements_object/create_payment_element#payment_element_create-options-defaultValues
I am trying to add email here. Does below code works for all payment methods that require email?
const opt1 = {
defaultValues: {
billingDetails: {
email: 'abcd@gmail.com'
}
},
}
<PaymentElement options={opt1} onReady={handleOnReady} />
Hello! I'm taking over and catching up...
It's working
Yep, that should work for anything that needs an email.