#serdar4003_paymentsheet-collect-email
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1310640971314233465
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
In our code we currently do this:
Hi there ๐ what integration are you using to accept Google and Apple Pay payments? That behavior isn't supported for Payment Element integrations.
If it's an Express Checkout Integration, you'll want to set emailRequired to true as shown here:
https://docs.stripe.com/elements/express-checkout-element/accept-a-payment#collect-payer
In our flutter mobile app we are using PaymentSheet
and in web we are using Payment Element ..
thats sad
Gotcha, I'm pretty sure that isn't supported. I'd suggest including your own field for collecting email addresses from your customers.
That makes really no sense .. it looks like this .. how the user should provide here the email for apple pay? ๐
Normally behind every apple and google pay account is an email
So we should receive it from them automatically
Hi ๐
I'm stepping in as my colleague needs to go
Are you saying you are not receiving customer emails when they use Apple Pay in the Payment Sheet?
Yes
Same with Google Pay
we have this code implemented, i would expect that it is then to be found in the Payment Method
or do i have to check another place?
I would agree, I think this has more to do with how the PaymentSheet is being configured
Let me do some digging
in flutter we have this code
and there it says email should always be collected
i dont know if we are missing something
When you say "and there it says email should always be collected"
What "there" are you referring to? What doc are you referencing?
billingDetailsCollectionConfiguration
in case we have a guest buying something we do not have an email
so we request it .. as you can see in the screenshot there is an email field
but when the user directly clicks on apple pay
we expected that we get the email account behind the apple account
as example
I am discussing this with my colleagues. We are not sure whether or not this setting is enforced when it comes to the digital wallets.
Okay so it doesn't look like this is possible within the payment sheet.
Instead we suggest you disable Apple/Google Pay in the PaymentSheet and use the PlatformPay button https://stripe.dev/stripe-react-native/api-reference/modules/PlatformPay.html for payments with those wallets.
You can explicitly configre the PlatformPay button to collect EmailAddress via the Contact field enum: https://stripe.dev/stripe-react-native/api-reference/enums/PlatformPay.ContactField.html