Magento Forum

   
Where does each payment gateway perform $order->setState after authorization? 
 
BVP156
Jr. Member
 
Avatar
Total Posts:  11
Joined:  2013-01-03
 

As an added fraud control I would like to set different order statuses based off of certain order details after a customer places an order.

Something like:

if($order->getPayment()->getTransaction()->getAdditionalInformation('avszip') != Y)
  
$order->setState('review for fraud');
else
  
$order->setState('processing');

Where would I do this? I assume I would intercept some default setState line of code in

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

 
Magento Community Magento Community
Magento Community
Magento Community
 
Ryan Sun _Kuafu
Guru
 
Total Posts:  317
Joined:  2008-11-14
FL
 

in the auth/capture methods of your payment method class

$payment->setIsFraudDetected(true);

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top