PayPal Rest API:如何在快速结帐时使用信用卡对话框禁用 registration/pay

PayPal Rest API: How to disable registration/pay with creditcard dialog at express checkout

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

我正在使用 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 登录。

在可用的情况下,访客结帐将取代帐户创建要求。访客结帐是一种 PayPal 帐户可选付款方式。
您将需要确保您有 Business Verified PayPal Account 并确保您的 PayPal 帐户中启用了访客结账
来自 PayPal 开发者网站:
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

根据国家/地区的不同,PayPal 托管页面将具有访客结账选项(使用信用卡的帐户 Optional/Pay)或创建 PayPal 帐户。