![](/img/trans.png)
[英]PayPal sandbox transaction success even if payer account has 0.00 balance
[英]Pay via PayPal Balance option not available in Sandbox Account
需要你的幫助。
我正在配置 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 印度不支持錢包支付,即 PayPal 余額。
謝謝。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.