#lkjhgfdsa
1 messages · Page 1 of 1 (latest)
Hello! Can you tell me a bit more? Some methods of payment require an email address. Are you already collecting the email address elsewhere?
No, the idea would be to collect little to no information about customers to make the payment process as smooth as possible. In this case this would mean never collecting their email nor any other unnecessary info that wouldn't be needed for making only the payment.
That's what the Payment Element does by default, it only collects what's required.
Which payment method(s) are you using where you're seeing it ask for email?
I implemented the payment element from this page onto my site: https://stripe.com/docs/payments/accept-a-payment?ui=elements
@supple ether
You can set email to never but you'll still need to supply it: https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-fields-billingDetails-email
So the email will need to be collected at one point or another before doing the transaction?
And there will be no way to do a transaction without providing an email at all?
Yes. How else will the customer get their receipt?
Is it required for the customer to get their receipt as a regulation or as a stripe policy, if I may ask?
I think it depends ont he payment method.
Some of them require an email address as part of the core payment process.
Alright, but I tried setting the email option to never, and the input field still shows, why is that?
Can you share your code?
const paymentElementOptions = {
layout: "tabs",
fields: {
billingDetails: {
email: "never"
}
}
};