application/models/bestitamazonpay4oxidclient.php
protected function _setOrderTransactionErrorStatus(oxOrder $oOrder, stdClass $oData, $sStatus = null)
    {
        if (isset($oData->Error->Code) && (bool) $oData->Error->Code !== false) {
            if ($sStatus === null) {
                $sStatus = 'AMZ-Error-'.$oData->Error->Code;
            }

            $oOrder->assign(array('oxtransstatus' => $sStatus));
            $oOrder->save();

            return true;
        }

        return false;
    }
protected function _setOrderTransactionErrorStatus(oxOrder $oOrder, stdClass $oData, $sStatus = null)
    {
        if (isset($oData->Error->Code) && (bool) $oData->Error->Code !== false) {
            if ($sStatus === null) {
                $sStatus = 'AMZ-Error-'.$oData->Error->Code;
            }

            $oOrder->assign(array('oxtransstatus' => $sStatus));
            $oOrder->save();

            return true;
        }

        return false;
    }
protected function _setOrderTransactionErrorStatus ( oxOrder $ oOrder , stdClass $ oData , $ sStatus = null ) { if ( isset ( $ oData -> Error -> Code ) && ( bool ) $ oData -> Error -> Code !== false ) { if ( $ sStatus === null ) { $ sStatus = 'AMZ-Error-' . $ oData -> Error -> Code ; } $ oOrder -> assign ( array ( 'oxtransstatus' => $ sStatus ) ) ; $ oOrder -> save ( ) ; return true ; } return false ; }
Sets the order status

@param oxOrder  $oOrder
@param stdClass $oData
@param string   $sStatus

@return bool
Sets the order status