Receiving 401 Unauthorized response when switching to Live

RPTech
Contributor
Contributor

I have been able to successfully connect and process credit card payments using the sandbox environment and credentials but when I switch to live, I'm getting the response: 401 Unauthorized.

 

I have updated the client id and client secret to be the live credentials as specified in my developer portal.  I've also upgraded my PayPal account to business and payments pro and the Manager portal says that live transactions should be enabled and working.

 

Any ideas on what the issue is?

Login to Me Too
3 REPLIES 3

MTS_Justin
Moderator
Moderator
Hello,

Check where your submitting the REST API request.

A "401" will be returned when there is an issue with the credentials you using (on a valid endpoint) or your attempting to use "sandbox" credentials within our production environment or vice-versa.

Also check this post if attempting credit card payments via REST in production, when your account is not located within an approved country -- https://www.paypal-community.com/t5/Payments/REST-Payments-get-error-401-UNAUTHORIZED/td-p/1349337

Was my post helpful? If so, please give me a kudos!
Login to Me Too

bd9000
Contributor
Contributor

Same problem here. I'm using correct credentials, they are not blocked in the USA, and have had zero help from Paypal (since they never return emails, CHAT is ALL canned (and useless responses), and, naturally, don't have a phone number to call - they just send you to this forum! ARRRGGGHHH!!!)

Login to Me Too

MTS_Justin
Moderator
Moderator
Hello,

Please provide more information on the exact issue your experiencing, including any examples of payment requests your making and the response being received back.

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.