Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Turning off or disabling "Suspected Fraud" check on Magento orders
 
a_dacosta
Jr. Member
 
Total Posts:  5
Joined:  2012-04-01
 

Hi,

This solution not working on magento 1.7.0.2, I have the same problem with Paypal.

Have they another solution to fix the problem ?

Thanks,
Alexandre

 
Magento Community Magento Community
Magento Community
Magento Community
 
patrecord
Guru
 
Avatar
Total Posts:  461
Joined:  2008-06-01
 

Some story here....

I have this issue when I try to collect less than order amount.

For example.....Order 100$, I try to collect 100$ works well, order 100$, I try to collect 90$ in magento backend order is suspect fraud.

Can somebody help me?

 
Magento Community Magento Community
Magento Community
Magento Community
 
matthewdolman
Jr. Member
 
Total Posts:  6
Joined:  2009-09-08
 

If all that you would like to do is disable Magento checking that the amount captured by paypal and the amount on the order is the same and returning the fraud status if they don’t match then in the file:

/app/code/core/Mage/Sales/Model/Order/Payment.php

On about line 1476 (inside the function _isCaptureFinal)

Change “return false;” to return true;

 
Magento Community Magento Community
Magento Community
Magento Community
 
Watson91
Jr. Member
 
Avatar
Total Posts:  11
Joined:  2012-08-30
 

i can verify that the fix above does actualy work however if you use this fix your shipping rates are not pulled through to paypal and the customer can place their order without actually paying for the shipping. I thought I had finally got through the PayPal nightmare untill I realised this so wanted to let everyone know just encase use dont notice.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Watson91
Jr. Member
 
Avatar
Total Posts:  11
Joined:  2012-08-30
 

matthewdolman I have just combined your post with william962’s and the paypal bug seems fixed!!!

As William stated above about going into paypal and checking the box in your profile settings, you must do this along with matthewdolman’s post above and the orders come through as processing and the money is in the paypal account.

I hope everyone who has this problem finds this post and does the fix this is unbelievable how long this has been going on for and how simple the fix was!

matthewdolman once again thank you!

 
Magento Community Magento Community
Magento Community
Magento Community
 
RedskinsOne
Jr. Member
 
Total Posts:  22
Joined:  2012-02-20
 

Does this affect Paypal express checkout as well?  I’m building my site now and using the sandbox account with express checkout and I haven’t had any issues.  My shipping will always be free shipping so I don’t know if I’ll have a problem.  Does anyone know if this will affect me?

 
Magento Community Magento Community
Magento Community
Magento Community
 
StudioZeroPixel
Sr. Member
 
Avatar
Total Posts:  154
Joined:  2010-02-01
Italy
 

Hallo I’, using 1.7.0.2
this is my fix for the _isCaptureFinal function found in the
Mage/Sales/Model/Order/Payment.php

protected function _isCaptureFinal($amountToCapture)
    
{
        $amountToCapture 
$this->_formatAmount($amountToCapturetrue);
        
$orderGrandTotal $this->_formatAmount($this->getOrder()->getBaseGrandTotal(), true);

        
//Original line if ($orderGrandTotal == $this->_formatAmount($this->getBaseAmountPaid(), true) + $amountToCapture) {
        
if (abs($orderGrandTotal - ($this->_formatAmount($this->getBaseAmountPaid(), true) + $amountToCapture)) <= 0.01 {
            
if (false !== $this->getShouldCloseParentTransaction()) {
                $this
->setShouldCloseParentTransaction(true);
            
}
            
return true;
        
}
        
return false;
    
}

I’ve logged the two variable
2012-11-22T11:40:55+00:00 DEBUG (7): _isCaptureFinal - amountToCapture = 42
2012-11-22T11:40:55+00:00 DEBUG (7): _isCaptureFinal - orderGrandTotal = 41.9999

It seems to me a rounding problem I’ve fixed it allowing a difference betwen the two number of 0.01 (1 Euro cent)

I’ve tested on 1.7.0.2 and it is working fine.

I hope this can help

Bye
Giuseppe Mencarelli

 
Magento Community Magento Community
Magento Community
Magento Community
 
Yireo
Member
 
Avatar
Total Posts:  52
Joined:  2008-05-26
The Netherland
 

Hi all,

Thanks to Giuseppe for providing the solution. It works nicely. But as each rounding issue, always involves differences of 1 Euro cents, I rewrote the solution a bit to make it more readable to myself:

protected function _isCaptureFinal($amountToCapture)
    
{
        $amountToCapture 
round($this->_formatAmount($amountToCapturetrue), 2);
        
$orderGrandTotal round($this->_formatAmount($this->getOrder()->getBaseGrandTotal(), true), 2);
        
$baseAmountPaid round($this->_formatAmount($this->getBaseAmountPaid(), true), 2);
        if (
$orderGrandTotal == $baseAmountPaid $amountToCapture{
            
if (false !== $this->getShouldCloseParentTransaction()) {
                $this
->setShouldCloseParentTransaction(true);
            
}
            
return true;
        
}
        
return false;
    
}

Same solution, different code.

 
Magento Community Magento Community
Magento Community
Magento Community
 
torsti
Jr. Member
 
Total Posts:  14
Joined:  2010-07-26
 

I still have that Paypal Fraud Problem.
Isn´t there any Person which knows how to disable that Fraud Check in code?

I tested all posted Examples but none works well so i want to disable the Fraud Check - but how and where?

 
Magento Community Magento Community
Magento Community
Magento Community
 
eyekiller_web
Jr. Member
 
Avatar
Total Posts:  19
Joined:  2011-06-09
 
torsti - 14 January 2013 01:20 AM

I still have that Paypal Fraud Problem.
Isn´t there any Person which knows how to disable that Fraud Check in code?

I tested all posted Examples but none works well so i want to disable the Fraud Check - but how and where?

Hello,

What version of Magento are you running? To my understanding, different fixes apply for different versions.

 
Magento Community Magento Community
Magento Community
Magento Community
 
torsti
Jr. Member
 
Total Posts:  14
Joined:  2010-07-26
 
william962 - 17 January 2013 03:52 AM

torsti - 14 January 2013 01:20 AM
I still have that Paypal Fraud Problem.
Isn´t there any Person which knows how to disable that Fraud Check in code?

I tested all posted Examples but none works well so i want to disable the Fraud Check - but how and where?

Hello,

What version of Magento are you running? To my understanding, different fixes apply for different versions.

Hello William, i am running community 1.7.0.2

 
Magento Community Magento Community
Magento Community
Magento Community
 
newfangle
Jr. Member
 
Total Posts:  6
Joined:  2012-09-06
 

During several months it has never happened but yesterday I had this problem.

The client made an order, Paypal captured it and the value is in my Paypal balance, but the Order Status is “Suspected Fraud”. And the Magento and Paypal amounts are exactly the same.
Is there any way to solve this issue? Can it really be a fraud if in my Paypal account the payment is confirmed?

 
Magento Community Magento Community
Magento Community
Magento Community
 
rune00
Member
 
Total Posts:  39
Joined:  2008-08-03
 

Same for me. This started happening yesterday.

 
Magento Community Magento Community
Magento Community
Magento Community
 
elfling
Enthusiast
 
Avatar
Total Posts:  901
Joined:  2008-10-21
 

2 Problems with Paypal.

a) This suspected fraud
b) sending discounts

Changed Paypal settings from sending item list to sending grand total to remove the Total miss match error, but now this error has appeared.

At least there is a fix for the suspected fraud, the discount error however is very irritating, with still no fix out there.

 
Magento Community Magento Community
Magento Community
Magento Community
 
ggarth
Jr. Member
 
Total Posts:  10
Joined:  2012-08-12
 

How did you change the PayPal setting for sending the grand total instead of sending the line item? I’m getting the Suspected Fraud error because my orderGrandTotal doesn’t equal my baseAmountPaid + amountToCapture. For some reason, my baseAmount is coming back (I think from PayPal) as the same amount as amountToCapture which then when added together, double what orderGrandTotal is.

2013-03-06T02:24:01+00:00 DEBUG (7): Array
(
    
[order_grand_total] => 29.99
    [base_amount_paid] 
=> 0
    [amount_to_capture] 
=> 29.99
    [paid] 
=> 29.99
    [__pid] 
=> 31901
)

2013-03-06T02:24:02+00:00 DEBUG (7): Array
(
    
[order_grand_total] => 29.99
    [base_amount_paid] 
=> 29.99
    [amount_to_capture] 
=> 29.99
    [paid] 
=> 59.98
    [__pid] 
=> 31905
)
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top