首页 > 解决方案 > 通过 PayPal 余额付款选项在 Sandbox 帐户中不可用

问题描述

需要你的帮助。

我正在配置 PayPal 沙盒环境。我有澳大利亚国家/地区的默认业务和人员沙盒帐户。我使用了使用企业帐户创建的默认应用程序中的 CLIENT_ID。我正在使用 react.js 来配置它。在 index.html 文件中我把下面的脚本:

<script src="https://www.paypal.com/sdk/js?client-id=my_client_id&currency=AUD&components=buttons,funding-eligibility"></script>

但是当我尝试使用我的人事帐户登录时,它没有显示付款选项 PayPal 余额。

在此处输入图像描述

请注意:我从印度提出此请求

请参阅我已配置的以下代码

 useEffect(() => {

window.paypal
  .Buttons({
    createOrder: (data, actions, err) => {
      return actions.order.create({
        intent: "CAPTURE",
        purchase_units: [
          {
            description: "Cool looking table",
            amount: {
              currency_code: "AUD",
              value: 2.0,
            },
          },
        ],
      });
    },
    onApprove: async (data, actions) => {
      const order = await actions.order.capture();
      console.log(order);
    },
    onError: (err) => {
      console.log(err);
    },
    fundingSource:window.paypal.FUNDING.PAYPAL
  })
  .render(paypal.current);

}, []);

}

标签: reactjspaypalpaypal-sandboxsandbox

解决方案


PayPal India 不支持钱包支付,即 PayPal 余额。

谢谢。


推荐阅读