PayPal Rest API:如何在快速结账时使用信用卡对话框禁用注册/支付 [英] PayPal Rest API: How to disable registration/pay with creditcard dialog at express checkout

查看:79
本文介绍了PayPal Rest API:如何在快速结账时使用信用卡对话框禁用注册/支付的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道 PayPals Rest API 是否有选项可以禁用用户批准对话框中的注册对话框(@see screenshot).

我正在使用 php-sdk (https://github.com/paypal/PayPal-PHP-SDK) 并且我在订单创建过程中将付款方式专门设置为paypal":

$payer = new \PayPal\Api\Payer();$payer->setPaymentMethod("paypal");...$payment = new \PayPal\Api\Payment();$payment->setPayer($payer);...$payment->create($this->_getApiContext());

我也检查了体验 API (https://developer.paypal.com/webapps/developer/docs/api/#create-a-web-experience-profile),但似乎也没有选择.

我是不是遗漏了什么,还是根本不可能隐藏这个对话框?

我的要求是没有第二个选项,只有简单的 PayPal 登录.

解决方案

如果可用,Guest Checkout 将取代帐户创建要求.Guest Checkout 是 PayPal 帐户的可选付款方式.
您需要确保您拥有 商业已验证的PayPal帐户 并确保您的 PayPal 帐户中启用了访客结账
来自 PayPal 开发者网站:
Rest API 接受 PayPal 付款
<块引用>

重要提示:要接收允许使用信用卡的 Guest Checkout 付款,请确保在您的帐户设置中启用了 PayPal 帐户可选.例如,这里是美国账户的路径:个人资料 > 我的销售工具 > 网站偏好 > PayPal 帐户可选

根据国家/地区的不同,PayPal 托管页面将提供访客结帐选项(帐户可选/使用信用卡付款)或创建 PayPal 帐户.

I am wondering whether there is an option at PayPals Rest API to disable the registration dialog in the user approval dialog (@see screenshot).

I am using the php-sdk (https://github.com/paypal/PayPal-PHP-SDK) and I have set the payment method exclusively to 'paypal' in the order creation process:

$payer = new \PayPal\Api\Payer();
$payer->setPaymentMethod("paypal");
...
$payment = new \PayPal\Api\Payment();
$payment->setPayer($payer);
...
$payment->create($this->_getApiContext());

I also have checked the experience API (https://developer.paypal.com/webapps/developer/docs/api/#create-a-web-experience-profile), but there seems to be no option either.

Am I missing something or is there just no possibility to hide this dialog?

Edit: My requirement is to have no second option, just the plain PayPal login.

解决方案

Where available, Guest Checkout would take the place of the account creation requirement. Guest Checkout is a PayPal Account Optional payment method.
You will need to ensure that you have a Business Verified PayPal Account and ensure you have Guest Checkout Enabled in your PayPal account
From the PayPal Developer Site:
Rest API Accept a PayPal Payment

Important: To receive Guest Checkout payments, which allow credit cards, ensure that PayPal Account Optional is enabled on your account settings. For example, here is the path for US accounts: Profile > My selling tools > Website preferences > PayPal Account Optional

The PayPal Hosted Page depending on the country will either have the Guest Checkout Option (Account Optional/Pay with Credit Card) or Create a PayPal Account.

这篇关于PayPal Rest API:如何在快速结账时使用信用卡对话框禁用注册/支付的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆