sales_order_place_after
您可以为或创建一个观察者sales_order_payment_place_end
<events>
<sales_order_place_after>
<observers>
<fraudtracking>
<type>singleton</type>
<class>fraudtracking/observer</class>
<method>changestatus</method>
</fraudtracking>
</observers>
</sales_order_place_after>
在你的observer.php
//Create a new status in Admin -> System -> Order Statuses
$STATE = 'fraud';
$_order = $event->getOrder();
if($order->getPayment()->getTransaction()->getAdditionalInformation('avszip') != Y){
$_order->addStatusHistoryComment('Review for fraud', $STATE)
->setIsVisibleOnFront(false)
->setIsCustomerNotified(false);
}