Question

Nous utilisons votre commande PayPal Express sur le site Web de notre client.

Nous devons ouvrir l'onglet carte de crédit sur le site de PayPal par défaut au lieu de l'onglet de compte paypal comme indiqué ci-dessous.

entrer image description ici

Maintenant, je vérifié la chaîne de requête dans l'URL. Lorsque vous cliquez sur cc, il ajoute le paramètre pageSate=billing puis il renseigne le champ CC sous forme de carte de crédit.

Je veux que cela se produise par défaut. Je suis arrivée à l'administrateur, mais il n'y a pas d'option pour elle.

Est-il possible que je peux le faire en modifiant le code de PayPal dans Magento?

guide Quelqu'un peut-il me par cette

Merci

Était-ce utile?

La solution

At last i was able to figure out how to do it. Thought to share the answer so someone like me can save the time and spend it for some fruitful purpose :P

So, what i did was

1) I checked for PayPal's API Calls from developer profile. The link for it is PayPal API

To open the credit card option by default you need to pass the API with parameters LANDINGPAGE=Billing.

2) Searched for API calls in Magento for PayPal and found the file Nvp.php at app/code/core/Mage/Paypal/Model/Api/Nvp.php

3) Search for the function callSetExpressCheckout() after $this->_exportLineItems($request); enter the following line $request['LANDINGPAGE'] = 'Billing';

This is all. Now test it using Express Checkout. I haven't yet tested it thorougly. Please add up to the answer if there are any better suggestion for it.

Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange
scroll top