Triggered on execution of a callback from a payment system.


Input (passed by reference)

$params array Action parameters.
$params['order_id'] int Order ID
$params['action_id'] int Action ID
$params['before_state_id'] int State ID before action execution
$params['after_state_id'] int State ID after action execution
$params[id] int Order history log record ID
$params['callback_transaction_data'] array Transaction data received by a payment plugin from payment gateway; available as of ver. 7.2.13
$params['callback_transaction_data']['plugin'] string Payment plugin ID
$params['callback_transaction_data']['merchant_id'] int Payment plugin setup instance ID
$params['callback_transaction_data']['date_time'] string Date and time of received gateway callback, in 'Y-m-d H:i:s' format
$params['callback_transaction_data']['update_datetime'] string Date and time received within gateway callback, in 'Y-m-d H:i:s' format
$params['callback_transaction_data']['order_id'] int Order ID
$params['callback_transaction_data']['type'] string Operation type as a value of a waPayment::OPERATION_*** constant
$params['callback_transaction_data']['state'] string Operation state as a value of a waPayment::STATE_*** constant
… your plugin code …



Plugin code example


public function orderActionCallback($params)
    waLog::dump($params, 'shop/myplugin/order-actions/callback.log');