Log in with PayPal Code Email Scope Is Not Working

b_biswal
Contributor
Contributor

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>

 

 Untitled.png

Login to Me Too
1 REPLY 1

MTS_Justin
Moderator
Moderator
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!
Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.