paypal - 将 PayPal Credit 选项添加到 PayPal 按钮

标签 paypal

PayPal Credit(以前称为 BML)概述页面说明如下:

How do I select PayPal Credit as my payment source? There are two ways to choose PayPal Credit. Some merchants have a PayPal Credit option at checkout. If they do, you can simply choose that option. If you don’t see a PayPal Credit option, check out with PayPal, and then you’ll have the option to select PayPal Credit as your payment method. Either way a window will appear on your screen where you’ll provide your date of birth and the last 4 digits of your Social Security number, and then agree to the terms and conditions. Approval takes just seconds and you can complete your purchase.

我试过几个网站,在其中一些网站上,当您使用 PayPal 结账时,PayPal Credit 会作为一个选项出现(例如,请参阅 Nordstrom)。在其他情况下,不会出现 PayPal Credit 选项(请参阅 KitchenAid)。需要在 PayPal API 中传递什么参数才能显示 Credit 选项?我查看了 PayPal 按钮创建者页面,没有添加 PayPal Credit 的选项。

最佳答案

我意识到这个问题很老了,但是 PayPal 文档很糟糕,所以这应该可以节省人们的时间。

如果您使用的是 PHP SDK您可以使用此方法将 PayPal 信用设置为默认付款。

$payer = new PayPal\Api\Payer();
$payer->setExternalSelectedFundingInstrumentType('CREDIT');

它的 JSON 是这样的

"payer":{
    "payment_method":"paypal",
    "external_selected_funding_instrument_type":"CREDIT"
}

关于paypal - 将 PayPal Credit 选项添加到 PayPal 按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27498038/

相关文章:

php - 有没有办法确保人们无法访问页面,除非他们已经用 php 完成了 paypal 表单?

cocoa-touch - 新的 PayPal iOS SDK(测试版)- 无法连接到沙箱

wordpress - WooCommerce 支付网关集成到外部页面,如 PayPal

php - PayPal 方法 = DoDirectPayment #10759 错误

php - 使用 HTTPS 的 Paypal IPN 验证回传

paypal - 如何在不允许的国家/地区使用 PayPal?

PayPal IPN 通知和成功 URL 参数

php - paypal商户SDK安装方法

android - Paypal 可以使用版本 15 吗?

php - Paypal 订阅代码出错,错误 : 10474