#asrob_
1 messages · Page 1 of 1 (latest)
How are you accepting google and apple pay payments? Is this the payment element, payment request button, or something else?
It's still Payment Element
Got it. If it's a hard requirement to accept those billing details, then I think you'll need separate fields to accept those details
With payment element, email and phone can only be set to auto or never: https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-fields-billingDetails-email
That's what it looked like but it a) it never asks and b) how do Stripe customers send order confirmations? You're own demo makes it look like getting the email is possible (or the UI is lying).
We currently ask for email, phone and zip. The only thing provided in the Apple / Google payload that's relevant (to us) is zip. We'd love to allow not having to enter email & phone and it has to be possible because I've used Google Pay and not provided it (with other merchants).
This demo: https://stripe-payments-demo.appspot.com/
Sorry I'm unclear what you're asking. We're definitely using the Payment Element and not a Payment Request. I get they're different just surprised that I can't seem to get email or phone with a "Payment Element". If the answer is no I can take it to my boss I'm just unclear the answer is it's not possible.
The demo is Stripe's AFAIK: https://github.com/stripe-archive/stripe-payments-demo
Gotcha just haven't seen that demo before. It uses payment request + custom form for billing details + card element
Yes, I understand.
AFAIK you can't force collection of email and phone in the payment element. @unique hill correct me if I'm wrong though
I'm thinking it would be more that we request Apple or Google provide it. They clearly have it as it's displayed in the UI.
We get the full address without even asking.
They clearly have it as it's displayed in the UI.
So when you provide email and phone there in their modal, you just can't access those details?
👋
Give me a couple to catch up
Yes, it's not part of the webhook ever. I looked at roughly 3500 transactions.
Thank you @unique hill & @toxic edge
Sorry I misunderstood what you were saying earlier
Communication is hard... for real.
So can you provide a payment intent where you explicitly entered email and phone in the gpay modal but can't find those billing details?
It's not entered it's stored but yes I can. I click Google Pay and it shows a modal that shows the address, email, and CC. I click pay and receive in the webhook ONLY the address details.
evt_3NaJeRBRjYgSLN4a2eSxDo8s
The metadata has it only because we currently collect it before the Google Pay button is clicked.
My understanding was that we reflected the information from Google Pay/Apple Pay on the payment method and not on the PaymentIntent
Looking..
ty. The webhook definitely has details provided by Google in the "Billing Details" section but email & phone is always absent.
Ah it's not something PaymentElement supports today
https://github.com/stripe/stripe-js/issues/476
@unique hill Thank you! Can I request you please put that somewhere in the docs? I sort of expected it to be here: https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-fields-billingDetails-email but could only find how to NOT accept details.
But I appreciate confirmation
Yes I can flag it internally to update the docs
Thank you. I appreciate both of you looking into this.