PayPal 结帐 COMPLIANCE_VIOLATION [英] PayPal Checkout COMPLIANCE_VIOLATION

查看:38
本文介绍了PayPal 结帐 COMPLIANCE_VIOLATION的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将 PayPal checkout 集成到我的 angular 网站中.集成似乎很好,但我在创建订单时总是出错.您会在下面找到我使用的所有代码.

I'm trying to integrate PayPal checkout in my angular website. the integration seems to be fine but I always have an error when creating an order. Below you will find all the code I used.

index.html

<head>
    ...
    <script src="https://www.paypal.com/sdk/js?client-id=MY-APP-SANDBOX-ID"></script>
</head>

donation.component.ts

declare var paypal;
...
export class DonationComponent implements OnInit{
    ...
    ngOnInit(): void {
        ...
         paypal.Buttons({
             createOrder: (data, actions) => {
                 return actions.order.create({
                     purchase_units: [{
                         description: "Donation For Al-Darb Platform.",
                         amount: {
                             currency_code: 'USD',
                             value: this.value
                         }
                     }]
                 });
             },
             onApprove: async (data, actions) => {
                  const order = await actions.order.capture();
                  console.log(order);
             },
             onError: err => {
                 console.log(err);
             }
         }).render(this.paypalElement.nativeElement);
    }
}

donation.component.html

...
<div #paypal></div>

执行一切后,仅在结帐时才正常工作(登录 Paypal 并验证付款后).我总是收到以下错误 HTTP 400:

After executing everything works fine only on checkout (after log in to Paypal and validating the payment). I always got the following error HTTP 400:

{
    ack: "contingency",
    contingency: "UNPROCESSABLE_ENTITY"
    data: {name: "UNPROCESSABLE_ENTITY", details: [{ issue: "COMPLIANCE_VIOLATION" ...}],
    ...
}

推荐答案

COMPLIANCE_VIOLATION

COMPLIANCE_VIOLATION

应该有更多信息,例如您可以分享的 debug_id,但由于是在阿尔及利亚,我确定问题是该帐户需要设置自动扫描方法才能接收付款.

There should be more information like a debug_id you can share, but since it's Algeria I'm sure the issue is the account needing an auto-sweep method set up in order to receive payments.

可能的自动转帐方法包括国际银行帐户或能够提取资金的本地 Visa 卡(并非所有卡都可以这样做).

Possible auto-sweep methods include an international bank account, or a local Visa card that is able to withdraw funds (not all cards can do so).

在帐户上进行此设置后,您就可以接收付款了.请联系 PayPal 支持以获得进一步帮助,这不是 Stack Overflow 的技术问题.

Once you have this set up on the account, you'll be able to receive payments. Contact PayPal's support for further assistance, it's not a technical issue for Stack Overflow.

这篇关于PayPal 结帐 COMPLIANCE_VIOLATION的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆