VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: heyday on November 25, 2014, 16:15:06 PM

Title: Checkout via Paypal and directly to credit card.
Post by: heyday on November 25, 2014, 16:15:06 PM
How can I configure the Checkout, so that I get to the Paypal Payment Page in the Creditcard section?

VM 2.6.12.2
Joomla! 2.5.27
Title: Re: Checkout via Paypal and directly to credit card.
Post by: GJC Web Design on November 26, 2014, 00:53:59 AM
afaik u can't

if PP knows you have an account (as buyer  - by cookie) it won't in my experience offer the CC option (this is the std. Paypal method)
Title: Re: Checkout via Paypal and directly to credit card.
Post by: jenkinhill on November 26, 2014, 11:19:40 AM
The PayPal Express plugin from http://plugins.online-store.co.uk/  has a setting to try to enforce PayPal to open at the card entry page, although this facility is not available in all countries. But as GJC says, if the shopper already has an account then they will be forced to go to the standard PP page.
Title: Re: Checkout via Paypal and directly to credit card.
Post by: heyday on December 08, 2014, 19:21:05 PM
Thx a lot for the reply! Will try it and report about the results.
Title: Re: Checkout via Paypal and directly to credit card.
Post by: Xris75 on December 15, 2014, 16:30:17 PM
Hi,

There was previously a hack for VM 2.0X that was allowing to force the credit card tab to stay open (enclosed).

>> I only have this Paypal solution and I see sheer difference of sales drop when this credit card tab is not opened.


I do not have the expertise to adapt it to our fantastic 2.6.14 version.

Can someone check it to see if it complicated to do it?

Thanks a lot

Chris



[attachment cleanup by admin]
Title: Re: Checkout via Paypal and directly to credit card.
Post by: alatak on December 15, 2014, 18:12:50 PM
Hello  Xris75

i have checked your paypal file.
You have 2 extra parameters : solution_type and landing_page
$html .='<input type="hidden" name="solution_type" value="Sole"/>';
$html .='<input type="hidden" name="landing_page" value="Billing"/>';


but Paypal do not have those parameters for the paypal standard
https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/formbasics/
https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/

i don't know how that code worked.
Title: Re: Checkout via Paypal and directly to credit card.
Post by: alatak on December 15, 2014, 18:26:53 PM
Hello

you can try to add those parameters in function preparePost (file plugins/vmpayment/paypal/paypal/helpers/paypalstd.php)
$post_variables['solution_type'] = 'Sole';
$post_variables['landing_page'] = 'Billing';
Title: Re: Checkout via Paypal and directly to credit card.
Post by: Xris75 on December 15, 2014, 20:21:42 PM
Thanks to Alatak this is the solution :


In the file plugins/vmpayment/paypal/paypal/helpers/paypalstd.php

> line 58 add in function preparePost
$post_variables['solution_type'] = 'Sole';$post_variables['landing_page'] = 'Billing';


> line 199 of the same document under the line


$html .= '<input type="hidden" name="charset" value="utf-8">';


add these 2 lines :   

$html .='<input type="hidden" name="solution_type" value="Sole"/>';
$html .='<input type="hidden" name="landing_page" value="Billing"/>';



Tested on my site www.sawtay.fr (http://www.sawtay.fr)
Works like a charm !!!


Thanks Alatak ! :)