Welcome, Guest. Please login or register.
Login with username, password and session length


It's a release candidate! VirtueMart 2.0 RC - the next generation VirtueMart - is available! Read more....

  Advanced search

247031 Posts in 67504 Topics- by 258313 Members - Latest Member: Matej.iStraxx
Pages: [1]   Go Down
Print
Author Topic: Paypal (new API) problems  (Read 2791 times)
newbii
Newbie
*
Posts: 5


« on: February 05, 2011, 15:35:41 pm »

Hi

I'm new to virtuemart and having some problems with paypal.

paypal is my only payment option.

When i checkout step 1-3 is ok, but when i enter step 4 I get some errors.

I'm never transferred to the paypal site where to commit the payment, instead at step 4 I get the messages:

Invalid Credit Card Number or Credit Card Verification Code.

Error: Invalid Credit Card Number or Credit Card Verification Code.
Error: Failure in Processing the Payment (ps_paypal_api)

Invalid Credit Card Number or Credit Card Verification Code.

Why is that? Have I forgot to setup something at the Paypal module?
or...?

Hope someone know about this.

Thanks  Huh

Logged
JohnBerringer
Newbie
*
Posts: 20


« Reply #1 on: February 05, 2011, 22:44:56 pm »

you use "paypal (old)" module or new? if you use old have you set up settings?
If you use new one you should enable another payment module i think this is bug if you have just pay pal it does not work you must have at least 2 different like "cash on delivery" then you will see 3 choices

PayPal
Credit Card
Cash on Delivery

choose paypal. But i suggest using old module.
Logged
newbii
Newbie
*
Posts: 5


« Reply #2 on: February 07, 2011, 10:08:02 am »

Hi, Thanks for your fast reply :-), but I'm still having the same problems.

Still when I choose paypal as payment method I get the same errors! I have to be send to the paypal site, but nothing happens except when finished step 4, the errors are shown!

And another question, why do I always have the option 'credit card' even though it has been disabled?

Huh

Logged
Jeff_S
** on hiatus **
Global Moderator
Hero Member
*
Posts: 574


if it aint broke, there must be something wrong


WWW
« Reply #3 on: February 08, 2011, 01:58:43 am »

I have experienced the same problem, but in IE only... if I run the same product through the checkout process in Google Chrome, Safari, and Firefox with only PayPal (new API) it works fine and goes to the paypal payment page, but... if I run it through IE8, it will give me the error.  Paypal Express checkout works in all instances. I have tested on Google Chrome, Safari, and Firefox in OSX and they all work fine - IE8 gives the error, Google Chrome and IE9 did work in Windows 7.

I have tried with only PayPal (new API) and with other payment methods such as cash on delivery using ps_payment
Logged

Jeff
=================================================
Dragon's Head Web Design - www.dragonsheadweb.com
**On Hiatus** Please don't PM me, as chances are you will not get a reply any time
soon - I am not on here as much as I used to be lately.
VirtueMart needs YOU! We need good coders that can help
with coding and testing to continue the VirtueMart Evolution!
Vive le VirtueMart!
Hennie
Newbie
*
Posts: 8


« Reply #4 on: March 05, 2011, 14:43:48 pm »

Hi..,
did anyone has a solution yet? I experience the same errors. Tried some suggestions on this board but nothing so far.. Sad
kind regards Hennie
Logged
zanardi
Development Team
Hero Member
*
Posts: 812


WWW
« Reply #5 on: March 05, 2011, 17:53:50 pm »

Some fixes regarding this issue has been included in VirtueMart 1.1.8, which IS NOT RELEASED YET.

If you want, you may test a BETA VERSION (strictly for non-production environment) available at http://dev.virtuemart.net/issues/308.
Logged

Hennie
Newbie
*
Posts: 8


« Reply #6 on: March 05, 2011, 18:29:59 pm »

thank you for your response  Smiley
I'm considering... have to check first with my iDeal-comp supplier.
Have just resolved an amount of troubles there...
kind regards,
Hennie
Logged
skulldah
Newbie
*
Posts: 1


« Reply #7 on: May 29, 2011, 01:32:36 am »

I have experienced the same problem, but in IE only... if I run the same product through the checkout process in Google Chrome, Safari, and Firefox with only PayPal (new API) it works fine and goes to the paypal payment page, but... if I run it through IE8, it will give me the error.  Paypal Express checkout works in all instances. I have tested on Google Chrome, Safari, and Firefox in OSX and they all work fine - IE8 gives the error, Google Chrome and IE9 did work in Windows 7.

I have tried with only PayPal (new API) and with other payment methods such as cash on delivery using ps_payment

Everybody try to do this:

Open the file get_payment_method_paypal_ex.tpl.php in [JOOMLA_HOME]/components/com_virtuemart\themes\default\templates\checkout

Look for this code:

<input type="hidden" id="paypalExpress_ecm" name="payment_method_ppex" value="" />

and change for this

<input type="hidden" id="paypalExpress_ecm" name="payment_method_ppex" value="2" />

The problem in IE8 is that JavaScript Engine doesn't execute the code that puts the value 2 in input id paypalExpress_ecm.

Virtue Mart needs that value to bypass the traditional credit card type and number validation
               
               
Logged
stAn99
Development Team
Newbie
*
Posts: 17


« Reply #8 on: June 02, 2011, 17:28:47 pm »

Hello everybody,
 today i found a bug in PayPal New Api when using direct payment and shipping tax together. Paypal will issue an error:

Quote
Paypal did not complete the transaction - FAILURE - SHORTMESSAGE =Transaction refused because of an invalid argument. See additional error messages for details. -
ERRORCODE =10413 -
LONGMESSAGE =The totals of the cart item amounts do not match order amounts. -

Recommended solution:

edit \administrator\components\com_virtuemart\classes\payment\ps_paypal_api.php
function NVP_DoDirectPaymentRequest

after this line:
Code:
$ship_total = isset($d['shipping_total']) ? round($d['shipping_total'],2) : 0;

add:
Code:
if (!empty($d['order_shipping_tax'])) $ship_total += round($d['order_shipping_tax'],2);

The same error can occur for Paypal express or normal paypal redirect when your $ps_checkout->calc_order_totals returns incorrectly rounded values and the sum does not match order total. This is particularly problem when a price of a product is set to 1.123456 and you add 1000 quantities of the product and multiply it by a tax rate such as 19 percent.
Logged
JFrehe
Newbie
*
Posts: 4


« Reply #9 on: June 07, 2011, 16:05:59 pm »

I have experienced the same problem, but in IE only... if I run the same product through the checkout process in Google Chrome, Safari, and Firefox with only PayPal (new API) it works fine and goes to the paypal payment page, but... if I run it through IE8, it will give me the error.  Paypal Express checkout works in all instances. I have tested on Google Chrome, Safari, and Firefox in OSX and they all work fine - IE8 gives the error, Google Chrome and IE9 did work in Windows 7.

I have tried with only PayPal (new API) and with other payment methods such as cash on delivery using ps_payment

Everybody try to do this:

Open the file get_payment_method_paypal_ex.tpl.php in [JOOMLA_HOME]/components/com_virtuemart\themes\default\templates\checkout

Look for this code:

<input type="hidden" id="paypalExpress_ecm" name="payment_method_ppex" value="" />

and change for this

<input type="hidden" id="paypalExpress_ecm" name="payment_method_ppex" value="2" />

The problem in IE8 is that JavaScript Engine doesn't execute the code that puts the value 2 in input id paypalExpress_ecm.

Virtue Mart needs that value to bypass the traditional credit card type and number validation
               
               

Thanks! that worked!
Logged
Pages: [1]   Go Up
Print
Jump to: