如何让PayPal正常工作?

问题描述 投票:0回答:1

我使用java将PayPal与我的网站集成,我创建了一个PayPal帐户,其中有2个SandBox帐户1.Business Account 2.Buyers Account On My App and Credential Section,我添加了一个应用程序,并在那里添加了一个返回URL

我正在使用带有以下代码的Check Out Button:

<head>
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <script src="https://www.paypalobjects.com/api/checkout.js"></script>
</head>

<div id="paypal-button"></div>

<script src="https://www.paypalobjects.com/api/checkout.js"></script>

<script>
    paypal.Button.render({

        env: 'production', // Or 'sandbox'

        client: {
            sandbox:    'clientId',
            production: 'LiveClientId'
        },

        commit: true, // Show a 'Pay Now' button

        payment: function(data, actions) {
            return actions.payment.create({
                payment: {
                    transactions: [
                        {
                            amount: { total: '1.00', currency: 'USD' }
                        }
                    ]
                }
            });
        },

        onAuthorize: function(data, actions) {
            return actions.payment.execute().then(function(payment) {

                // The payment is complete!
                // You can now show a confirmation message to the customer
            });
        }

    }, '#paypal-button');
</script>
</body>

它允许我输入信用卡或借记卡详细信息,但一旦我输入我的买家的帐户资金信用卡详细信息那里它给出以下错误

We're sorry, but your card issuer declined the payment. To complete your purchase, check your card details are correct or try a different card.

我尝试创建另一个买家帐户,在那里它给出了以下错误抱歉,但您的发卡机构拒绝了这笔付款。要完成购买,请尝试使用其他卡。

请让我知道如何使其正常工作。

java rest paypal
1个回答
0
投票

PayPal接受万事达卡,维萨卡和美国运通卡。该卡被要求在PayPal中在线使用,并支持在线支付和国际贸易。

© www.soinside.com 2019 - 2024. All rights reserved.