reactjs - 通过 PayPal 余额付款选项在 Sandbox 帐户中不可用
问题描述
需要你的帮助。
我正在配置 PayPal 沙盒环境。我有澳大利亚国家/地区的默认业务和人员沙盒帐户。我使用了使用企业帐户创建的默认应用程序中的 CLIENT_ID。我正在使用 react.js 来配置它。在 index.html 文件中我把下面的脚本:
<script src="https://www.paypal.com/sdk/js?client-id=my_client_id¤cy=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);
}, []);
}
解决方案
PayPal India 不支持钱包支付,即 PayPal 余额。
谢谢。
推荐阅读
- python - 使用 Socket 发送多个文件 Python
- python - 如何在新行的列表中打印单词的每个字母之间的空格?
- c++ - 检查输入是否根本不是整数或数字 cpp
- objective-c - 在运行时将 Swift 值类型与对象(即引用类型)区分开来?
- php - 使用 vlucas/dotenv 在整个应用程序中加载的环境变量
- javascript - 为什么我的某些按钮在 html5 画布上无法正常工作?
- macos - 暗模式:NSColor.colorNamed 在某些方法中没有返回正确的颜色
- google-cloud-platform - 有什么方法可以使用 2 个不同的 json 服务密钥将文件从一个项目复制到另一个项目?
- javascript - 反应 setstate 采用以前的值
- node.js - 在猫鼬结果上使用 lodash cloneDeep() - 无法更新生成的 JSON