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

China☆狼群 提交于 2019-12-25 04:53:23

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/31655313/paypal-rest-api-how-to-disable-registration-pay-with-creditcard-dialog-at-expre

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!