skip to Main Content

I am using @paypal/checkout-server-sdk and when I use live enviroment I get this error:

    text: `{"name":"UNPROCESSABLE_ENTITY","details":[{"field":"/purchase_units/@reference_id=='default'/payee","location":"body","issue":"PAYEE_ACCOUNT_RESTRICTED","description":"The merchant account is restricted."}],"message":"The requested action could not be performed, semantically incorrect, or failed business validation.","debug_id":"17aeec9c490da","links":[{"href":"https://developer.paypal.com/docs/api/orders/v2/#error-PAYEE_ACCOUNT_RESTRICTED","rel":"information_link","method":"GET"}]}`,        
    statusCode: 422,
    headers: {
      'content-type': 'application/json',
      'content-length': '487',
      connection: 'close',
      date: 'Thu, 16 Sep 2021 15:39:15 GMT',
      application_id: 'APP-22708535S4154154M',
      'cache-control': 'max-age=0, no-cache, no-store, must-revalidate',
      caller_acct_num: 'HCYCS3MA4HASE',
      'paypal-debug-id': '17aeec9c490da',
      http_x_pp_az_locator: 'ccg14.slc',
      'strict-transport-security': 'max-age=31536000; includeSubDomains'
    }
  }
}

Code: http://hastebin.com/ixotativig.js

2

Answers


  1. This is not a programming matter. As the error’s details say:

    {
      "field": "/purchase_units/@reference_id=='default'/payee",
      "location": "body",
      "issue": "PAYEE_ACCOUNT_RESTRICTED",
      "description": "The merchant account is restricted."
    }
    

    So, log into the live merchant account at http://www.paypal.com to review information about the restriction and steps to resolve it. Contact PayPal if you need support.

    Login or Signup to reply.
  2. This is true. I got same error, you just have to contact paypal. This is a 422 error and it has nothing to do about your code implementation.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search