Unauthorized Payment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We need technical support to debug a paypal api resonse error message. We are using paypal node js rest sdk (https://www.npmjs.com/package/paypal-rest-sdk) to perform payments. When we hit the create payment api we are receiving UNAUTHORIZED_PAYMENT error.
Sample payload:
{
"transactions" : [
{
"amount" : {
"currency" : "USD",
"total" : "1"
},
"description" : "This is the payment description."
}
],
"redirect_urls" : {
"return_url" : "http://return.url",
"cancel_url" : "http://cancel.url"
},
"intent" : "sale",
"payer" : {
"payment_method" : "paypal"
}
}
Response ```{
"status": {
"code": 400,
"paypalError": {
"response": {
"name": "UNAUTHORIZED_PAYMENT",
"message": "Unauthorized payment.",
"information_link": "https://developer.paypal.com/docs/api/payments/#errors",
"debug_id": "788aab7ddeb23",
"httpStatusCode": 401
},
"httpStatusCode": 401
}
}
}```
As show in above response message, UNAUTHORIZED_PAYMENT is coming. We have double checked client id and secret, that information is correct. Also, the Sandbox mode is working fine, but not the Live.
Debug id: 3e18cd5c26314
We need some technical support to figure possible cause behind this issue.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi inagrab,
I would recommend you to contact the customer service hotline as your issue may require in-depth technical expertise.
Kind Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- where does paypal payments go to if there is no linked phone or email to the seller ? in PayPal Payments Standard
- Couldn't receive International payment in PayPal Payments Standard
- Is it possible to make payments in RON (Romanian Leu) through PayPal? in REST APIs
- My PayPal is not allowing me to receive or send requests. in PayPal Payments Standard
- "System error. Please try again later" when connecting to paypal sandbox account with my android app in Sandbox Environment