VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Payment VM 1.1 => PayPal / PayPal Pro VM 1.1 => Topic started by: only1russ on August 24, 2011, 03:24:13 AM

Title: PayPal IPN Error
Post by: only1russ on August 24, 2011, 03:24:13 AM

I have been reading several threads on this, but I do not charge tax, but I do charge 3.10 % fee for shipping (setup in the module)
I only use USD currently and ONLY take paypal.

I get the PayPal IPN Error where Virtuemart may have a total of $3.98 and paypal has a total of $3.99 (1 cent off)
It is not all the time - but VERY often.

The previous examples I have found reference tax, or reference different currencies. I am not sure where to look.
Please advise.

Thanks!
Title: Re: PayPal IPN Error
Post by: stinga on August 25, 2011, 01:36:41 AM
G'day,

It is all to do with the same issue in that the total is calculated twice and differently. So you either need to stop recalculating the price in the paypal stuff or ignore the error.
I will have a look at this since it seems to becoming more prevalent but I can't say when.
We took the decision to modify notify.php and allow price variance of +/- 0.01 of a unit of currency, not good but quick and dirty.
Title: Re: PayPal IPN Error
Post by: only1russ on August 25, 2011, 13:32:43 PM
Wow - THANKS! - I did another search for "recalculating the price in the paypal" and "recalculating the price" but there is no information - Is there an option for this - or will I need to modify a script domewhere ?

-I do NOT want paypal to recalculate anything - I only want them to get the total of what is being sent.
(There may be a good redundancy check here, but I have not seen any errors - except paypay is paying me one cent less on about 80% of the orders) - a penny - not bad - but a halt in the automatic process - and time to verify = frustrating...

THANKS again!

-- Russ T.

Title: Re: PayPal IPN Error
Post by: stinga on August 25, 2011, 13:46:35 PM
G'day,

I may have not said quite wanted I want to say!.
It's not PP that is recalculating the data it is the code in VM that sends the data to PP. It is  VM issue. In the PP extra code section of the PP payment methode you can see some calc's going on to get the data from the DB to send to PP, it is there that the problem occurs (I think). I would need to check to make sure.
Title: Re: PayPal IPN Error
Post by: only1russ on October 13, 2011, 15:23:01 PM
The entire error I get is:
the amount didn't match the order total.

Is this fixed in the new version ?
and/or is there a file I can edit to calculate only 1 time rather than creating a new calculation from the database ? - or something similar ?