我正在使用@paypal/checkout-server-sdk,当我使用实时环境时,我收到此错误:
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'
}
}
}
这不是编程问题。正如错误的详细信息所示:
{
"field": "/purchase_units/@reference_id=='default'/payee",
"location": "body",
"issue": "PAYEE_ACCOUNT_RESTRICTED",
"description": "The merchant account is restricted."
}
因此,请登录 www.paypal.com 上的真实商家帐户,查看有关限制的信息以及解决该问题的步骤。如果您需要支持,请联系 PayPal。
这是真的。我也遇到同样的错误,你只需联系 paypal 即可。这是一个 422 错误,与您的代码实现无关。