#changmin - Gmail
1 messages · Page 1 of 1 (latest)
Hi 👋
Do you mean get the User's email account?
I don't think Google/Apple expose that in the data they return to Stripe.
but we can get it from paymentRequest.on('paymentmethod',
This event
But for us it's better to get the email when stripe button loading
before the pay
Sorry it's paymentmethod event
Are you still talking about the paymentRequest event?
https://stripe.com/docs/js/payment_request/events/on_shipping_address_change
yes
Sorry it's not the address change event
I can only get the email from the paymentRequest paymentmethod event
Ah you mean this one: https://stripe.com/docs/js/payment_request/events/on_paymentmethod
Yes you can see in the screenshot
we can get the email from Chrome
but is their any otherway to get the emai?
That isn't something Stripe.js has control over
It's submitted as part of the information to create the payment method but beyond that, it's not something we collect. I think you would have to build that into your own integration if you needed it prior to that event.
Or, is there anyway to change the return message by our customize message?
I can only input this e.complete('invalid_shipping_address');
but sometimes we need customize message
Can you describe this use case and where you are doing this?
such like if the user doesn't log on chrome, we can show a message like this "Could you pleas login your browser"
As far as I know, that is not something Stripe.js can facilitate
Maybe you would want to look into the APIs that the Chrome browser makes available for application developers.
I haven't dug into those but perhaps you can find a way to get the data you are looking for:
https://developer.chrome.com/docs/extensions/reference/
OK, Thank you