AUTHENTICATION FAILURE

dayramos
New Community Member

Hello, We use Paypal via integration on our platform, but the invoice return link does not work, when accessing it the following message appears:

{"name":"AUTHENTICATION_FAILURE","message":"Authentication failed due to invalid authentication credentials or a missing Authorization header.","links":[{"href":"https://developer.paypal.com/docs/api/overview/#error","rel":"information_link"}]}

 

Login to Me Too
2 REPLIES 2

Kavyar
Moderator
Moderator

Good day @dayramos 

 

Thank you for posting to the PayPal community.

 

I kindly suggest you check the API credentials you are currently using. It is important to ensure that your LIVE account API credentials can only be used within your LIVE environment, while your sandbox account API credentials can only be used within your sandbox environment. These credentials cannot be interchanged between the two environments.

 

Please make sure you are using the same SANDBOX/LIVE  REST API Credentials(Client ID & Secret) while performing the below API calls.

 

https://developer.paypal.com/api/rest/authentication/

https://developer.paypal.com/api/rest/postman/ 

 

I kindly suggest you give it another try by triggering a new API request with the correct credentials.

 

If your still facing issues, please create an MTS ticket via -  https://www.paypal-support.com/s/?language=en_US  with the detailed information and error details.

 

Sincerely,

Kavya

PayPal MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Login to Me Too

jii121
Contributor
Contributor
Missing parameter 'Authorization'
===============================
Accessing , err := http.NewRequest("GET", return of goods, nil)
    if err != nil {
        return //
    }
Accessing .Header.Set("Authorization", key)
===============================
After going through the difficulties of sandbox development such as ClientID.Basic.base64, we finally came to the real account test.
Just generate a real account payment request link,
But I don’t have a universal international bank card, so I can’t use it to complete the test.
That person helped pay HKD 0.01 to complete the development and testing.
Payment request link
www.paypal.com/checkoutnow?token=4A2411988D419514A
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.