News:

Support the VirtueMart project and become a member

Main Menu

PayPal API not Redirecting to PayPal

Started by davemd66, March 28, 2011, 05:54:27 AM

Previous topic - Next topic

davemd66

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]

smart

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

pjwalker

Again, is this the IE8 problem? Does it do this with Firefox?

davemd66

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

thewebnsoft

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..?

dfennelly

Has anyone found a solution to this API error?

Im suffering with this also.

Declan

m.iannozzi

Any solution about it?
It works fine before update to 1.1.9
I'm using paypal (new api)

Thanks a lot.

m.iannozzi

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.

m.iannozzi

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 />