Log in with PayPal Code Email Scope Is Not Working
b_biswal
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Apr-08-2022
04:53 AM
Hello, Everyone
I am using the Log in with PayPal code and In the scope of the code I am sending the email but I am not greeting the user PayPal email details after proper login authentication . I have also given permission on the sandbox for the email to get capture (screenshot added ) but this code dose not give me back the user PayPal email details. Any suggestion .
<script type="text/javascript">
paypal.use( ['login'], function (login) {
login.render ({
"appid":"<APP STANDBOAX TOKEN>",
"scopes":"openid,email",
"authend": "sandbox",
"containerid":"lippButton",
"responseType":"code",
"locale":"en-us",
"buttonType":"LWP",
"buttonShape":"pill",
"buttonSize":"lg",
"fullPage":"true",
"returnurl":"Return URL",
});
});
</script>
1 REPLY 1

Moderator
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr-12-2022
07:10 AM
Hello,
When the buyer logs in to approve the information sharing request, you should receive a code back in the response from PayPal. You then exchange this authorization code for an access token.
Once you have the access token you can use this to query the user info endpoint and retrieve the shared buyer's information.
https://developer.paypal.com/docs/log-in-with-paypal/integrate/#link-test
Thanks !
Was my post helpful? If so, please give me a kudos!
When the buyer logs in to approve the information sharing request, you should receive a code back in the response from PayPal. You then exchange this authorization code for an access token.
Once you have the access token you can use this to query the user info endpoint and retrieve the shared buyer's information.
https://developer.paypal.com/docs/log-in-with-paypal/integrate/#link-test
Thanks !
Was my post helpful? If so, please give me a kudos!

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Things don’t appear to be working at the moment in PayPal Payments Standard
- p is not a function error using the example downloaded from Paypal in SDKs
- How to enable on-demand / recurring payments to existing PayPal checkout? in SDKs
- WooCommerce and PayPal GENERIC_ERROR dring CheckOut in PayPal Payments Standard
- Paypal Sandbox webshook (SANDBOX WEBHOOKS) not working Real time issue not trigger in Sandbox Environment