#changmin - Gmail

1 messages · Page 1 of 1 (latest)

limpid timber
#

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.

granite lotus
#

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

limpid timber
granite lotus
#

yes

#

Sorry it's not the address change event

#

I can only get the email from the paymentRequest paymentmethod event

limpid timber
granite lotus
#

Yes you can see in the screenshot

#

we can get the email from Chrome

#

but is their any otherway to get the emai?

limpid timber
#

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.

granite lotus
#

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

limpid timber
#

Can you describe this use case and where you are doing this?

granite lotus
#

such like if the user doesn't log on chrome, we can show a message like this "Could you pleas login your browser"

limpid timber
#

As far as I know, that is not something Stripe.js can facilitate

granite lotus
#

OK

#

Thank you anyway

limpid timber
#

Maybe you would want to look into the APIs that the Chrome browser makes available for application developers.

granite lotus
#

OK, Thank you