由于违反合规性,交易被拒绝
Transaction is declined due to compliance violation
我编写了一个基于 express js (NodeJs) 的电子商务脚本。在我能够通过 paypal(沙盒)付款之前,但经过一周的编码后,每次我尝试通过 paypal 从脚本中购买东西时,我都会遇到这个错误
{
name: 'COMPLIANCE_VIOLATION',
message: 'Transaction is declined due to compliance violation.',
information_link: 'https://developer.paypal.com/docs/api/payments/#errors',
debug_id: '9ebba0bda94ee',
httpStatusCode: 400
}
(node:1226) UnhandledPromiseRejectionWarning: Error: Response Status : 400
at IncomingMessage.<anonymous> (/Users/ismail/Desktop/expressjs-blank/node_modules/paypal-rest-sdk/lib/client.js:130:23)
at IncomingMessage.emit (events.js:215:7)
at endReadableNT (_stream_readable.js:1184:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
(node:1226) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1226) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
违反合规性的可能原因有很多。
如果您在 live 环境中收到此错误,您可能需要向帐户添加自动取款方式(例如银行帐户或本地 Visa 卡支持提款),以及其他可能的原因。您必须联系 PayPal 以获得进一步支持,以确定违规原因。
由于您的问题是针对 sandbox 环境的,只需尝试使用来自不同国家(例如美国或英国)的接收方企业帐户进行测试。在 https://www.paypal.com/signin?intent=developer&returnUri=https%3A%2F%2Fdeveloper.paypal.com%2Fdeveloper%2Faccounts%2F , and then an app with a ClientID/Secret for it at https://developer.paypal.com/developer/applications
创建一个
尝试创建新的沙盒企业帐户并使用它的凭据(cliend_id,机密)而不是默认的沙盒企业帐户凭据。
我遇到了这个问题,这对我有帮助:)。
我编写了一个基于 express js (NodeJs) 的电子商务脚本。在我能够通过 paypal(沙盒)付款之前,但经过一周的编码后,每次我尝试通过 paypal 从脚本中购买东西时,我都会遇到这个错误
{
name: 'COMPLIANCE_VIOLATION',
message: 'Transaction is declined due to compliance violation.',
information_link: 'https://developer.paypal.com/docs/api/payments/#errors',
debug_id: '9ebba0bda94ee',
httpStatusCode: 400
}
(node:1226) UnhandledPromiseRejectionWarning: Error: Response Status : 400
at IncomingMessage.<anonymous> (/Users/ismail/Desktop/expressjs-blank/node_modules/paypal-rest-sdk/lib/client.js:130:23)
at IncomingMessage.emit (events.js:215:7)
at endReadableNT (_stream_readable.js:1184:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
(node:1226) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1226) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
违反合规性的可能原因有很多。
如果您在 live 环境中收到此错误,您可能需要向帐户添加自动取款方式(例如银行帐户或本地 Visa 卡支持提款),以及其他可能的原因。您必须联系 PayPal 以获得进一步支持,以确定违规原因。
由于您的问题是针对 sandbox 环境的,只需尝试使用来自不同国家(例如美国或英国)的接收方企业帐户进行测试。在 https://www.paypal.com/signin?intent=developer&returnUri=https%3A%2F%2Fdeveloper.paypal.com%2Fdeveloper%2Faccounts%2F , and then an app with a ClientID/Secret for it at https://developer.paypal.com/developer/applications
创建一个尝试创建新的沙盒企业帐户并使用它的凭据(cliend_id,机密)而不是默认的沙盒企业帐户凭据。 我遇到了这个问题,这对我有帮助:)。