cancel
Showing results for 
Search instead for 
Did you mean: 

Unauthorized Payment

Contributor

Unauthorized Payment

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

3 REPLIES 3
New Community Member

Re: Unauthorized Payment

Hi inagrab, 

 

 

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

 

 

Kind Regards, 

Contributor

Re: Unauthorized Payment

Sure, thanks.

Highlighted
Contributor

Re: Unauthorized Payment

Can you please provide us with PayPal hotline number, and whether we can reach them on Skype, WhatsApp or email?