简体   繁体   中英

Forwarding a user directly to credit card processing page on PayPal

Is it possible to forward a user to PayPal (no account/non member page) during a checkout process? For instance, when I forward any user to PayPal, the user sees a checkout screen where PayPal asks for the PayPal account. At the bottom of the login options, there is an option to pay directly by credit card for new users. I would like to be able forward the user to that option from my php code by using a variable. Maybe I can use a variable in my php code after cmd in the following code:

$sActionURL = 'https://www.paypal.com/cgi-bin/webscr';
$aFormData = array(
            'cmd' => '_xclick-subscriptions',
            'lc' => $locale 
        );

I am not sure whether PayPal allows this, but I already know that my user does not have a PayPal account. So it would be better to forward the user to that page. Thank you.

If you are using PayPal Express Checkout, you can set LANDINGPAGE parameter:

https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/SetExpressCheckout_API_Operation_NVP/

(Optional) Type of PayPal page to display. It is one of the following values:

 Billing – Non-PayPal account Login – PayPal account login 

Website Payments Standard doesn't support it.

遗憾的是,这不可能,Paypal不允许通过他们的API完成这项工作,你拥有他们的帐户是他们业务的核心所以他们显然不会让你绕过他们试图束缚你(是的我是不是Paypal的粉丝)

I achieved this by not supplying the customers email address to the paypal payment page. If you don't supply an email address it doesn't auto fill the login form and displays the credit/debit card payment form.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM