javascript - 贝宝稍后按钮未显示
问题描述
我已经尝试了以下贝宝代码,但它没有显示贝宝稍后按钮。是否会显示任何有条件的或仅显示我们的地理位置
// Loop over each funding source / payment method
paypal_sdk.getFundingSources().forEach(function(fundingSource) {
// Initialize the buttons
var button = paypal_sdk.Buttons({
fundingSource: fundingSource
});
// Check if the button is eligible
if (button.isEligible()) {
// Render the standalone button for that funding source
button.render('#paypal-button-container');
}
});
解决方案
各种因素决定了以后付款的资格,例如交易的货币和买方的位置和意图,它不是保险库或订阅交易。尝试使用货币美元和位于美国的买家,例如 - 在沙盒(非实时)模式下,您可以&buyer-country=US
在 SDK 脚本的查询字符串参数中传递参数以进行测试。
推荐阅读
- docker - 获取非当前分支的分支名称 gitlab-ci
- python - TypeError: __init__() 接受 1 个位置参数,但给出了 33 个(FLASK)
- android - Android 应用:未声明后台位置访问权限
- c# - 从 SignalR 连接获取客户端 IP
- c++ - C++ 中“AList”类的填充方法问题?
- django - 带有对象列表的 Django 字段
- java - 有没有办法专门从数组 Java 中挑选出元素到 Ada
- git - 无法列出 Git Enterprise 中的所有存储库
- c# - 从多播委托中删除特定委托的所有实例
- django - Django migrate 每次都被杀死