News:

Support the VirtueMart project and become a member

Main Menu

Malformed Redirect to PayPal Causing PayPal Error

Started by ejd, April 11, 2012, 01:07:46 AM

Previous topic - Next topic

ejd

Joomla 2.5.4
VM 2.02

On the "redirecting to PayPal" screen (after the Confirm Order button is pressed), I am getting some code attached to the button:
  {lang:"}  "_ext-enter"/>
See attached screenshot.

This is causing an error when the request reaches PayPal.
PayPal cannot process payment.

I re-installed VM2.02 and AIO2.02.

Any ideas?




[attachment cleanup by admin]

ejd

FOUND the source of the problem: Facebook/GG+ JSDK Kit is injecting code into the PayPal POST String

This is causing a malformed string to be sent to PayPal -- which then rejects the payment as an error.
I have tried this with both VM2.02 and now VM 2.04

If I turn off the Facebook/GG+ JSDK Kit then everything posts just fine.

See the actual code below:

<form name="vm_paypal_form" method="post" action="https://www.sandbox.paypal.com/cgi-bin/webscr">
<input type="submit" value="Please wait while redirecting to PayPal">
<input type="hidden" value="_ext-enter" name="cmd <!-- Start Facebook/GG+ JSDK Kit (by web-expert.gr)--> <!-- End Facebook/GG+ JSDK Kit (by web-expert.gr)--> ">
<input type="hidden" value="_xclick" name="redirect_cmd">
<input type="hidden" value="1" name="upload">

I have posted on the developer's website.
Will keep this Forum aware of updates.