Hi there
We are integration Paypal Rest API here https://getitinerary.com/ . REST API Payments get error 401 UNAUTHORIZED when using live credentials, in testing credentials all working ok. Below you will see the debug id and error message. Can you please look into this
[21-10-2018 04:44:04] PayPalCorePayPalHttpConnection : INFO: POST https://api.paypal.com/v1/oauth2/token
[21-10-2018 04:44:04] PayPalCorePayPalHttpConnection : INFO: Response Status : 200
[21-10-2018 04:44:04] PayPalCorePayPalHttpConnection : INFO: POST https://api.paypal.com/v1/payments/payment
[21-10-2018 04:44:05] PayPalCorePayPalHttpConnection : INFO: Response Status : 401
[21-10-2018 04:44:05] PayPalCorePayPalHttpConnection : ERROR: Got Http response code 401 when accessing https://api.paypal.com/v1/payments/payment. {"name":"UNAUTHORIZED_PAYMENT","message":"Unauthorized payment.","information_link":"https://developer.paypal.com/docs/api/payments/#errors","debug_id":"dfe6720d1ef30"}
Thank you
Hi Isuru Welivitigoda,
The error indicates that your PayPal credentials are not correct
Hi there,
I checked it again and all my keys are correct. But my account is from Japan. It can be the issue?
Thank you
Hey,
There is no restrictions on specific accounts on different countries, however please contact PayPal support and check with them on limitations for the account that you’re using
Please login or Register to submit your answer