Question

When i click on Paypal Express Checkout it sends me to paypal website where i get 2 options

1)Pay with my Paypal Account

2)Pay with a Debit or Credit Card or Bill me Later

enter image description here

Now the problem is I want to add 2 Options in my checkout

1) Pay with paypal

2)Pay with Credit or Debit Card

When User clicks on Pay with paypal then first Paypal options need to open. Like this

enter image description here

And When they clicks on 2nd Option then second option needs to be opened. Like this

enter image description here

Can Anyone tell me how can i achieve this. Any help will be appreciated.

Était-ce utile?

La solution

You can change the landing page at the moment you execute the SetExpressCheckout API method.

If you look at the API reference for the LANDINGPAGE field :

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

Billing – Non-PayPal account

Login – PayPal account login

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

So you have to create 2 options in you checkout, the first option (Pay with paypal) executes SetExpressCheckout with LANDINGPAGE=Login and the second option has to call the same method but with LANDINGPAGE=Billing

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top