paypal快速结账在手机上 - 结账时作为客人选择

Rob*_*ard 8 php paypal

我有一个paypal快速结账配置在桌面浏览器上工作正常,它提供两个选项'使用paypal登录'或'结账为客人',但在移动设备上它不允许用户通过卡直接支付'结账为客人' - 它总是显示'创建一个帐户'而非常烦人有人知道如何获得第二个选项'结账为客人'出现在手机上?

小智 0

默认情况下,PayPal 将呈现它认为符合条件的所有按钮。然而,他们的一些集成允许覆盖这一点。PayPal 将这些资金来源称为资金来源。此示例演示了如何自定义可用的资金来源。

// Loop over each funding source/payment method
paypal.getFundingSources().forEach(function (fundingSource) {
  // Initialize the buttons
  var button = paypal.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')
  }
})
Run Code Online (Sandbox Code Playgroud)