我已经为我的网站使用了一个标准的Paypal快速结账按钮,然而,在输入信用卡/借记卡详细信息时,客户不断得到'OAS_validation_error‘。
结账在最初几周工作得很好(我在测试期间进行了50多笔交易),但现在突然停止了几个月。我已经联系了贝宝几次,但我一直被转介到不同的团队没有解决方案。

<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Add meta tags for mobile and IE -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title> PayPal Checkout Integration | Client Demo </title>
</head>
<body>
<!-- Set up a container element for the button -->
<div id="paypal-button-container"></div>
<!-- Include the PayPal JavaScript SDK -->
<script src="https://www.paypal.com/sdk/js?client-
id=test¤cy=USD"></script>
<script>
// Render the PayPal button into #paypal-button-container
paypal.Buttons({
// Set up the transaction
createOrder: function(data, actions) {
return actions.order.create({
purchase_units: [{
amount: {
value: '88.44'
}
}]
});
},
// Finalize the transaction
onApprove: function(data, actions) {
return actions.order.capture().then(function(orderData) {
// Successful capture! For demo purposes:
console.log('Capture result', orderData,
JSON.stringify(orderData, null, 2));
var transaction =
orderData.purchase_units[0].payments.captures[0];
alert('Transaction '+ transaction.status + ': ' +
transaction.id + '\n\nSee console for all available
details');
// Replace the above to show a success message within
this page, e.g.
// const element = document.getElementById('paypal-
button-container');
// element.innerHTML = '';
// element.innerHTML = '<h3>Thank you for your payment!
</h3>';
// Or go to another URL:
actions.redirect('thank_you.html');
});
}
}).render('#paypal-button-container');
</script>
</body>
</html>json响应:{"errors":[{"data":{"code":"EXISTING_ACCOUNT_RESTRICTED"},"message":"OAS_VALIDATION_ERROR","path":"approveGuestPaymentWithCreditCard","checkpoints":"onboard_user","meta":{},“message”:true,"statusCode":200}],json "extensions":{"tracing":{"version":1,"startTime":"2021-11-30T02:41:12.584Z","endTime":"2021-11-30T02:41:12.837Z","duration":252644113,"execution":{"resolvers":[{"path":"approveGuestPaymentWithCreditCard",“parentType”:“startTime”,"fieldName":"approveGuestPaymentWithCreditCard","returnType":"CheckoutSession","startOffset":1454344,"duration":250581192}]}},"correlationId":"f2593514582c8"}}
发布于 2021-11-30 05:18:49
错误中最能说明问题的部分是EXISTING_ACCOUNT_RESTRICTED。这是PayPal的信用卡拒绝,显然是由于账户被标记为未经授权的欺诈。也许是因为你试图在PayPal的生活环境中为自己付款,这是不允许的--信用卡公司明确禁止向你自己支付任何款项。
如果你联系贝宝的客户支持,并给他们受影响的卡的号码,他们可能能够在PayPal环境中解除阻止,但同时,当使用该卡通过PayPal在任何地方进行支付时,此错误是预期的行为。
如果您将来需要测试实时支付,请确保您用来付款的卡和用来接收付款的账户在中没有任何方式关联(在结帐时没有共同使用的姓名、地址、电话号码或电子邮件等)
https://stackoverflow.com/questions/70161959
复制相似问题