VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Payment VM 1.1 => PayPal / PayPal Pro VM 1.1 => Topic started by: davemd66 on March 28, 2011, 05:54:27 AM

Title: PayPal API not Redirecting to PayPal
Post by: davemd66 on March 28, 2011, 05:54:27 AM
Hello,
   Hope someone can help. Having a problem with the PayPal API. I have it configured as well as a standard Credit Card Processor. On my payment options page the Credit Card Processor shows up as well as the choice of PayPal.

  However, when I check the radio button to process PayPal and submit the order I get an error message that the CC # or CVV code is invalid. WHich makes no sense because it should take me to PayPal to complete the transaction. It never even seems to try to redirect the browser.

  I have it configured correctly as a type "P" for HTML form based transaction in the configuration.

  I turned on debug and at the bottom of the screen it says "Debug: Doing Direct Payment Request", which I think would indicate some sort of issue because in my mind and HTML form based checkout is not a Direct Payment Request.

Attached is an image of my error and debug screen.

ANy help would be greatly appreciated.

Dave

[attachment cleanup by admin]
Title: Re: PayPal API not Redirecting to PayPal
Post by: smart on April 01, 2011, 15:27:51 PM
I have exactly the same error . The paypal choice in the payment method gives me that error after clicking the confirm order button.
But express checkout button works fine.

Would like some help too
Title: Re: PayPal API not Redirecting to PayPal
Post by: pjwalker on April 02, 2011, 10:02:23 AM
Again, is this the IE8 problem? Does it do this with Firefox?
Title: Re: PayPal API not Redirecting to PayPal
Post by: davemd66 on April 02, 2011, 21:35:59 PM
Quote from: pjwalker on April 02, 2011, 10:02:23 AM
Again, is this the IE8 problem? Does it do this with Firefox?

No, it also happens under FireFox. Doesn't seem to matter which browser I use I get the same error.

Dave
Title: Re: PayPal API not Redirecting to PayPal
Post by: thewebnsoft on May 02, 2011, 14:41:11 PM
I have same probelm with Standard Paypal method (which comes with VM installation), but very strange finding on my site is if I set Test mode on then it redirects me to Paypal fine but if I choose test mode as no, then it doesn't redirect me to paypal and another issue it even if I submitted my order having Paypal as payment method it automatically switched to "Cash on Delivery" and I got order thank you page..?
Title: Re: PayPal API not Redirecting to PayPal
Post by: dfennelly on May 17, 2011, 23:00:45 PM
Has anyone found a solution to this API error?

Im suffering with this also.

Declan
Title: Re: PayPal API not Redirecting to PayPal
Post by: m.iannozzi on July 17, 2011, 18:22:34 PM
Any solution about it?
It works fine before update to 1.1.9
I'm using paypal (new api)

Thanks a lot.
Title: Re: PayPal API not Redirecting to PayPal
Post by: m.iannozzi on July 17, 2011, 22:52:59 PM
It as a BUG - Below a work around:
I have replace /administrator/components/com_virtuemart/classes/ps_checkout.php 1.1.9 with ps_checkout.php 1.1.8 and now works but now it show  me a form to choose payment method from "credit card" and paypal (I haven't any credit card method enabled - only paypal). As default it flag credit card method and I need to choose paypal.
With 1.1.9 it hide any  form and send data as credit card.
I hope that VM team resolve it.
Title: Re: PayPal API not Redirecting to PayPal
Post by: m.iannozzi on July 18, 2011, 11:14:28 AM
Hello to all, I have finally solved it.
Is no more necessary to replace /administrator/components/com_virtuemart/classes/ps_checkout.php 1.1.9 with ps_checkout.php 1.1.8

In VM 1.1.9 (I don't know if this is best way but for me works)
in
/components/com_virtuemart/themes/simplecheckout/templates/checkout/get_payment_method_paypal_ex.tpl.php

I have removed below code:

<?php

echo ps_checkout::list_payment_methods( $payment_method_id );

?>

and I have modified line from
<input type="radio" id="paypalExpressID_ecm" name="payment_method_id" value="<?php echo ps_paypal_api::getPaymentMethodId();?>" />
to
<input type="radio" id="paypalExpressID_ecm" name="payment_method_id" value="<?php echo ps_paypal_api::getPaymentMethodId();?>" checked />