首页 > 解决方案 > 贝宝稍后按钮未显示

问题描述

我已经尝试了以下贝宝代码,但它没有显示贝宝稍后按钮。是否会显示任何有条件的或仅显示我们的地理位置

  // 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');
    }
});

标签: javascriptpaypalsdk

解决方案


各种因素决定了以后付款的资格,例如交易的货币和买方的位置和意图,它不是保险库或订阅交易。尝试使用货币美元和位于美国的买家,例如 - 在沙盒(非实时)模式下,您可以&buyer-country=US在 SDK 脚本的查询字符串参数中传递参数以进行测试。


推荐阅读