PHP Classes

Login with Paypal Return Authorization Code is invalid.

Recommend this page to a friend!

      PHP OAuth Library  >  All threads  >  Login with Paypal Return...  >  (Un) Subscribe thread alerts  
Subject:Login with Paypal Return...
Summary:Unable to access user info after Login.
Messages:5
Author:Owais Kiani
Date:2015-10-26 07:24:07
 

  1. Login with Paypal Return...   Reply   Report abuse  
Picture of Owais Kiani Owais Kiani - 2015-10-26 07:24:07
Hi,
thank you for your great code.
I am integrating Paypal Login. After successfully login on Paypal sandbox account it return this error.

it was not possible to access the OAuth access token: it was returned an unexpected response status 401 Response: {"error":"invalid_authz_code","error_description":"Authorization Code is invalid"}

Thank for your support,

  2. Re: Login with Paypal Return...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-10-27 01:48:30 - In reply to message 1 from Owais Kiani
I am seeing that error now but I am not sure why it is happening now.

Anyway, the dialog and token request URL for sandbox are different. So are the client id and secret codes for each application you create.

  3. Re: Login with Paypal Return...   Reply   Report abuse  
Picture of Owais Kiani Owais Kiani - 2015-10-27 10:57:43 - In reply to message 2 from Manuel Lemos
Can u look at it.

  4. Re: Login with Paypal Return...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-11-03 18:48:29 - In reply to message 3 from Owais Kiani
I have tried this and also get the same error. It works without errors when sending the request as Paypal application.

I need more time to investigate but I cannot promise when I can look at it. Please be patient.

  5. Re: Login with Paypal Return...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2016-01-14 21:38:57 - In reply to message 3 from Owais Kiani
Sorry for the delay. I figure the problem. The access_token_url was incorrect. I just fixed it in the latest version that you may download now.