dpryszku 0 Posted April 21, 2009 Posted April 21, 2009 Hi,I am using PrestaShop for a couple of month and after a branding process it comes pretty funky.I am using PayPal as the main payment module and i would like to know if it is possible to change its "on clic" behaviour.As the first page of PayPal that appears for the payment process shows the paypal logon bigger that the link for Credit Card payment without paypal account, i would like to change the Module behaviour by going directly to the page for Credit Card payment.After a quick look at the URL called, the only difference is the # sign at the end.Any Idea ?Thanks for your helpDAviD--https://www.paypal.com/ch/cgi-bin/webscr?cmd=_flow&SESSION=LDx-----de6--https://www.paypal.com/ch/cgi-bin/webscr?cmd=_flow&SESSION=LDx-----de6# Share this post Link to post Share on other sites
ishi 2 Posted April 30, 2009 Posted April 30, 2009 Did you figure out how to do this? If you do, will you post it please. THANKS Share this post Link to post Share on other sites
Hoodgrown 2 Posted April 30, 2009 Posted April 30, 2009 Don't think it could be done.. and if it could it would violate Paypal's TOS... Share this post Link to post Share on other sites
valoo83 0 Posted May 27, 2009 Posted May 27, 2009 I know some web site where this paypal page is the one which opens. I don't know if they are based on Prestashop.. For example, that's the case for www.chateauonline.comIf someone knows how to do it I am really interested too. Share this post Link to post Share on other sites
mooshi 2 Posted May 28, 2009 Posted May 28, 2009 Hi! If you have a business a/c with Paypal you set it up within Paypal....there is an option to choose if you want the cc page or normal. Share this post Link to post Share on other sites
Hoodgrown 2 Posted May 28, 2009 Posted May 28, 2009 This option wasn't always available. I wonder when they started this? I'm going to have to look into this Share this post Link to post Share on other sites
Hoodgrown 2 Posted May 28, 2009 Posted May 28, 2009 I have a business account and I can't seem to find any information pertaining to this. Share this post Link to post Share on other sites
seastars 0 Posted May 28, 2009 Posted May 28, 2009 did anyone figure this out? Share this post Link to post Share on other sites
arowana 1 Posted June 13, 2009 Posted June 13, 2009 I have a PayPal business account, I looked through all the settings, can't find where to change that setting Share this post Link to post Share on other sites
Mallee Boy 16 Posted June 20, 2009 Posted June 20, 2009 Any way of making this happen? Or at least editing the huge paypal logo/link on check out to display a VISA card symbol as well Share this post Link to post Share on other sites
pawo 0 Posted June 21, 2009 Posted June 21, 2009 simply activate PayPal Payments Pro on your PayPal account and integrate it with your cart; Further info: https://www.paypal.com/uk/cgi-bin/webscr?cmd=_wp-pro-overview-outside Share this post Link to post Share on other sites
goldfoot 0 Posted July 10, 2009 Posted July 10, 2009 After spending hours on the phone with the folks at PayPal, here's the deal (for all of us USA kids):With a standard PayPal account:A user will be taken directly to the page to enter their credit card info IF AND ONLY IF they DO NOT have a PayPal account associated with their email address. If PayPal recognizes the email address, they will be taken to the dreaded "PayPal login" page.So for all of the countless people who used PayPal once a couple years ago for some eBay purchase, and have long forgotten their account information, this is a major problem.The ONLY way around this is to get a PayPal Pro account, which sadly, PrestaShop does not seem to support for the good ol' US of A.Really sux to have discovered this after hundreds of hours trying to get this shop up and running. My client is quite unhappy, and looks like we may have to ditch PrestaShop if a module isn't available...like...yesterday.Sorry gang.And hey. If I'm wrong (God, I hope I am), somebody pleeeease let me know! Share this post Link to post Share on other sites
Marghoob Suleman 10 Posted July 11, 2009 Posted July 11, 2009 Hi goldfoot,Thanks for the info. Share this post Link to post Share on other sites
jazz009 0 Posted September 8, 2009 Posted September 8, 2009 Hi all,It's even easyer then that.It's simply a cookie system.If you already have a PayPal account and you did not clean the cookies recently, you will not see the form where you can pay with the credit card.PayPal will populate the page with your email address.If you do not have a PayPal account or if you have cleared your cookies and cache, you will have access to the form.Using the API (from Prestashop 1.2 ) you will be able to force the form to appear. Share this post Link to post Share on other sites
AngelofHaovc 0 Posted September 16, 2009 Posted September 16, 2009 Hi all,It's even easyer then that.It's simply a cookie system.If you already have a PayPal account and you did not clean the cookies recently, you will not see the form where you can pay with the credit card.PayPal will populate the page with your email address.If you do not have a PayPal account or if you have cleared your cookies and cache, you will have access to the form.Using the API (from Prestashop 1.2 ) you will be able to force the form to appear. Hi Jazz, Good find out. I was wondering this too. but how do you force the API (v1.0) to use credit card form? I am using v1.2.2. when cookie enable, my email is filled there and I can't see the credit card option. I am using API v1.0 with sandbox mode.Thanks Share this post Link to post Share on other sites
jazz009 0 Posted September 21, 2009 Posted September 21, 2009 Hi AngelofHaovc,You will be able to force the Credit card form to appear but you will never be able to hide the PayPal login box.In order to force the Form to show you will need to modify the PayPal API modulebasically you need to add the following code $paymentType = 'Sale' and '&LANDINGPAGE;='.$landingPage Follow the example bellow1st you will modify the PayPalExpress.php that you will find here:root\modules\paypalapi\payment\PaypalPayment.phpfrom line 29 // Making request $returnURL = (Configuration::get('PS_SSL_ENABLED') ? 'https://' : 'http://').htmlspecialchars($_SERVER['HTTP_HOST'], ENT_COMPAT, 'UTF-8').__PS_BASE_URI__.'modules/paypalapi/express/submit.php'; $cancelURL = (Configuration::get('PS_SSL_ENABLED') ? 'https://' : 'http://').htmlspecialchars($_SERVER['HTTP_HOST'], ENT_COMPAT, 'UTF-8').__PS_BASE_URI__.'order.php'; $paymentAmount = number_format(floatval($cart->getOrderTotal()), 2, '.', ''); $currencyCodeType = strval($currency->iso_code); $paymentType = 'Sale'; $landingPage = 'Billing'; $request = '&Amt;='.urlencode($paymentAmount).'&PAYMENTACTION;='.urlencode($paymentType).'&ReturnUrl;='.urlencode($returnURL).'&CANCELURL;='.urlencode($cancelURL).'&CURRENCYCODE;='.urlencode($currencyCodeType).'&LANDINGPAGE;='.$landingPage; if ($this->_header) $request .= '&HDRIMG;='.urlencode($this->_header); Then you will need to modify the same thing in the file PayPalPayment.phpyou will find it here:root\modules\paypalapi\payment\PaypalPayment.phpFrom line 18 // Making request $vars = '?fromPayPal=1'; $returnURL = (Configuration::get('PS_SSL_ENABLED') ? 'https://' : 'http://').htmlspecialchars($_SERVER['HTTP_HOST'], ENT_COMPAT, 'UTF-8').__PS_BASE_URI__.'modules/paypalapi/payment/submit.php'.$vars; $cancelURL = (Configuration::get('PS_SSL_ENABLED') ? 'https://' : 'http://').htmlspecialchars($_SERVER['HTTP_HOST'], ENT_COMPAT, 'UTF-8').__PS_BASE_URI__.'order.php'; $paymentAmount = number_format(floatval($cart->getOrderTotal()), 2, '.', ''); $currencyCodeType = strval($currency->iso_code); $paymentType = 'Sale'; $landingPage = 'Billing'; $request = '&Amt;='.urlencode($paymentAmount).'&PAYMENTACTION;='.urlencode($paymentType).'&ReturnUrl;='.urlencode($returnURL).'&CANCELURL;='.urlencode($cancelURL).'&CURRENCYCODE;='.urlencode($currencyCodeType).'&NOSHIPPING=1'.'&LANDINGPAGE;='.$landingPage; if ($this->_header) $request .= '&HDRIMG;='.urlencode($this->_header); I would Have prefer to highlight the code in the example but i could not find a way to do it on the forum.Let me know if this answer your question. Share this post Link to post Share on other sites
ceonwuka 0 Posted September 26, 2009 Posted September 26, 2009 Hm, I tried what you said jazz and i keep receiving this error message:Please refer to logs: 1. Making new connection to 'api-3t.sandbox.paypal.com/nvp' 2. Connect with CURL method sucessfull 3. Sending this params: 4. METHOD=SetExpressCheckout&VERSION=53.0&PWD;=*********&USER=lifeisgrimey_api1.gmail.com&SIGNATURE;=*********&Amt=45.80&PAYMENTACTION=Sale&ReturnUrl=http://www.grimeylife.com/prestashop/modules/paypalapi/payment/submit.php?fromPayPal=1&CANCELURL=http://www.grimeylife.com/prestashop/order.php&CURRENCYCODE=USD&NOSHIPPING=1&LANDINGPAGE;=Billing 5. Send with CURL method sucessfull 6. PayPal response: 7. TIMESTAMP -> 2009-09-27T00:40:55Z 8. CORRELATIONID -> 85669d47c0367 9. ACK -> Failure 10. VERSION -> 53.0 11. BUILD -> 000000 12. L_ERRORCODE0 -> 10002 13. L_SHORTMESSAGE0 -> Security error 14. L_LONGMESSAGE0 -> Security header is not valid 15. L_SEVERITYCODE0 -> Error 16. PayPal returned error« BackSomething about a security error. Any ideas? Share this post Link to post Share on other sites
jazz009 0 Posted September 28, 2009 Posted September 28, 2009 Hi,this error means that your API signature is not correct.Maybe are you using a live signature on the sandbox platform or the oppositeChecking my previous message, i'have seen some errors in the code postedI tried to correct it but each time a full stop is added to the variable.for example '&CURRENCYCODE;=' should be without the ";"basically the code you need to add to your files are:$landingPage = 'Billing';and.'&LANDINGPAGE;='.$landingPage;without the ";" after LANDINGPAGELet me know if i'm not clear or if you have an idea how i can remove the ";" Share this post Link to post Share on other sites
henrycr 2 Posted October 18, 2009 Posted October 18, 2009 They have seen prestashop (Version 1.5 of prestashop and 1.4 paypal ,where you can verify that this adjustment Paypal) Share this post Link to post Share on other sites
youstar 0 Posted January 15, 2010 Posted January 15, 2010 Hi! If you have a business a/c with Paypal you set it up within Paypal....there is an option to choose if you want the cc page or normal. where inthere can i confige that? Share this post Link to post Share on other sites
chineseboy 0 Posted May 9, 2010 Posted May 9, 2010 Can't get this to work. It keeps going to the usual landing page. Anyone else had any trouble with this and actually managed to get it working? Share this post Link to post Share on other sites
Norwegian Rat 18 Posted August 25, 2013 Posted August 25, 2013 I was wondering about the same issue, and found a solution that worked for me. Using PS 1.4.9 and paypal module v. 3.0.11. Find paypal_express_checkout.php (this folder: paypal/express_checkout) and change line 169: $fields['LANDINGPAGE'] = 'Login'; to $fields['LANDINGPAGE'] = 'billing'; Share this post Link to post Share on other sites
delysid23 0 Posted January 31, 2014 Posted January 31, 2014 You can change the landing page in the file process.php located in /modules/paypal/express_checkout/process.php. Change the login value of LANDINGPAGE to Billing. DONE Share this post Link to post Share on other sites
maximilian8777 4 Posted September 14, 2015 Posted September 14, 2015 You can change the landing page in the file process.php located in /modules/paypal/express_checkout/process.php. Change the login value of LANDINGPAGE to Billing. DONE I use this solution on the last versione of paypal module on prestashop 1.6 but i got error when I try to pay with paypal.. Any Ideas? Share this post Link to post Share on other sites
Recommended Posts