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

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