App reviews, troubleshooting, and recommendations
Hi,
I have an app with a UI extension, where I would like to get the email of the customer related to the current checkout. For this purpose I would like to use the useEmail hook c.f. https://shopify.dev/docs/api/checkout-ui-extensions/2023-07/react-hooks/buyer-identity/useemail. I only get "undefined" though - even when I am logged in. I am suspecting it is due to the fact that it is protected data and the app has to go through the "Protected customer data access" approval process, but in the approval form, it states:
Only apps that are distributed on the App Store need to submit their access for review
If you’re installing on a development store, select your data use in step 1 to access protected customer data.
So I guess it should be possible to get the customer email in the checkout UI extension via the useEmail hook without the approval.
If that is the case, why is the value undefined - even when the customer is logged in?
Code snippet:
... const email = useEmail() console.log('email', email) ...
Thanks,
-Louise
User | RANK |
---|---|
11 | |
6 | |
5 | |
4 | |
3 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023