VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: Za42 on January 28, 2016, 10:01:57 AM

Title: Add parameter to Paypal / Checkout Button
Post by: Za42 on January 28, 2016, 10:01:57 AM
Hello all,

Joomla 3.4.3, VM 3.0.9.4

I am using Paypal Express Checkout, and am trying to have my cutomers land on the Pay with Credit Card option.

Before anyone interjects, this is possible, and Paypal themselves have confirmed this with me, and even made a button for me which connects directly to the CC Landing Page, as desired.

They said in order to do this though, I need to add the following parameter;

<input type="hidden" name="landing_page" value="Billing">

Where and how do I implement this? This will be of great use to me, and through hours of searching would seem to help a number of other people also!

Best regards and once again thanks for all and any help
Title: Re: Add parameter to Paypal / Checkout Button
Post by: GJC Web Design on January 28, 2016, 10:10:02 AM
where the vars are collected/formed for the paypal post or form

probably somewhere in plugins\vmpayment\paypal\paypal\helpers\paypalexp.php but have never used Express

Title: Re: Add parameter to Paypal / Checkout Button
Post by: Za42 on January 28, 2016, 11:59:19 AM
Ok, that's where I was looking, but not sure where in the php file to place the code.

If it resolves it I'd happily change to another solution- what layout is best in your opinion?
Title: Re: Add parameter to Paypal / Checkout Button
Post by: ssc3 on January 28, 2016, 12:57:07 PM
Note PayPal have a new style of Login Page in which setting the

"Landing Page" to Billing may not be effective.

At the moment it seems entirely random which version you will be shown.

So this may or may not work for you.
Title: Re: Add parameter to Paypal / Checkout Button
Post by: Za42 on January 28, 2016, 13:06:26 PM
SSC3, I tried this plugin, but it wouldn't work in the front-end. It kept saying no database file and would only create an error. Plus in the back-end I could not read any of the drop down menus since the box was smasher than the text string it contained...
Title: Re: Add parameter to Paypal / Checkout Button
Post by: ssc3 on January 28, 2016, 13:33:41 PM
I am not seeing those reports from elsewhere. It could be a template problem but without seeing it, it is difficult to tell.

But even so setting Landing Page to "Billing" can not be relied on.