Dirty Butter Posted February 20, 2012 Share Posted February 20, 2012 I've been meaning to ask this for a long time. I see this in the log for the standard PP payment transactions. I do not use the PP Pro version. Payer Status: unverified Amount paid didn't match amount on invoice Customers ARE paying the correct amount, so I'm just curious as to why it's reported. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted April 9, 2012 Author Share Posted April 9, 2012 Anyone?? Quote Link to comment Share on other sites More sharing options...
Toucan Web Design Posted April 10, 2012 Share Posted April 10, 2012 A client had a similar problem, try taking a backup of: modulesgatewayPayPalgateway.class.php then make the following change, see if it fixes FIND: if (isset($_POST['mc_gross']) && trim($_POST['mc_gross']) !== $order_summary['prod_total']) { $transData['notes'][] = "Amount paid didn't match amount on invoice."; } And try changing to: if(isset($_POST['mc_gross'])){ $_POST['mc_gross'] == trim($_POST['mc_gross']); if((float)$_POST['mc_gross'] !== (float)$order_summary['prod_total']){ $transData['notes'][] = "Amount paid didn't match amount on invoice."; } } Don't think they ever got back to say whether or not it had actually worked though, but I was suspecting that it might be trying to compare a string variable to a double or something along those lines. Let us know if that helps Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted April 10, 2012 Author Share Posted April 10, 2012 Thanks. I've tried it. I'll let you know if it works. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted April 11, 2012 Author Share Posted April 11, 2012 No - newest order still has the funny transaction error message. Quote Link to comment Share on other sites More sharing options...
Toucan Web Design Posted April 12, 2012 Share Posted April 12, 2012 Hmm, next step then is just to try debugging it really.. try changing: $transData['notes'][] = "Amount paid didn't match amount on invoice."; To $transData['notes'][] = "Amount paid didn't match amount on invoice. ".$_POST['mc_gross']." vs ".$order_summary['prod_total']; Should print out the values for both on the transaction log then, maybe will give a clue as to what's going on and why they're not tallying up Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted April 12, 2012 Author Share Posted April 12, 2012 I changed the line, but nothing different shows on the transaction log page. Do I need to wait until the next order? Enable debugging? Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted April 14, 2012 Author Share Posted April 14, 2012 OK. Latest order shows Payer Status: verified Amount paid didn't match amount on invoice. 40.35 vs. So it's not picking up the order summary product total yet. Don't know if this is the problem, but the _order_summary table uses total, not prod_total as the column name. As a test while I wait to hear back from you, I'm going to try changing that to just total and see what happens. Quote Link to comment Share on other sites More sharing options...
Toucan Web Design Posted April 16, 2012 Share Posted April 16, 2012 Ah, that may well be the problem then, I didn't notice that one, still used to the old style ones. It's trying to compare it to a non existent value then, did changing it to total sort the issue out? Had best find out who else asked me and let them know Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted July 13, 2012 Author Share Posted July 13, 2012 This error in the Transaction log stopped when I updated to 5.1.1. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.