Mert Sevinc
Mert Sevinc

Reputation: 1027

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.

Upvotes: 1

Views: 305

Answers (3)

Gavin
Gavin

Reputation: 2143

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.

Upvotes: 1

Ahmad Suhendri
Ahmad Suhendri

Reputation: 604

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.

Upvotes: 2

Clark T.
Clark T.

Reputation: 1470

Sadly this is not possible Paypal does not allow this to be done via their API, you having an account with them is the core of their business so they are obviously not going to let you bypass them trying to rope you in (yes I'm not a fan of Paypal)

Upvotes: 1

Related Questions