Unauthorized Payment

inagrab
Contributor
Contributor

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.

 

Picture1.png

Login to Me Too
3 REPLIES 3

rapha123
New Community Member

Hi inagrab, 

 

 

I would recommend you to contact the customer service hotline as your issue may require in-depth technical expertise.

 

 

Kind Regards, 

Login to Me Too

inagrab
Contributor
Contributor

Sure, thanks.

Login to Me Too

inagrab
Contributor
Contributor
Can you please provide us with PayPal hotline number, and whether we can reach them on Skype, WhatsApp or email?
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.