src/ShopBundle/objects/db/TShopOrder.class.php
public function ExecutePayment(&$oPaymentHandler, $sMessageConsumer = '')
    {
        $bPaymentOk = false;
        $bAllowEdit = $this->bAllowEditByAll;
        $this->AllowEditByAll(true);
        $aData = $this->sqlData;
        $aData['system_order_payment_method_executed'] = '0';
        $aData['system_order_payment_method_executed_date'] = date('Y-m-d H:i:s');
        $this->LoadFromRow($aData);
        $this->Save();

        $bPaymentOk = $this->ExecutePaymentHook($oPaymentHandler, $sMessageConsumer);

        $this->AllowEditByAll($bAllowEdit);

        return $bPaymentOk;
    }
public function ExecutePayment(&$oPaymentHandler, $sMessageConsumer = '')
    {
        $bPaymentOk = false;
        $bAllowEdit = $this->bAllowEditByAll;
        $this->AllowEditByAll(true);
        $aData = $this->sqlData;
        $aData['system_order_payment_method_executed'] = '0';
        $aData['system_order_payment_method_executed_date'] = date('Y-m-d H:i:s');
        $this->LoadFromRow($aData);
        $this->Save();

        $bPaymentOk = $this->ExecutePaymentHook($oPaymentHandler, $sMessageConsumer);

        $this->AllowEditByAll($bAllowEdit);

        return $bPaymentOk;
    }
public function ExecutePayment ( & $ oPaymentHandler , $ sMessageConsumer = '' ) { $ bPaymentOk = false ; $ bAllowEdit = $ this -> bAllowEditByAll ; $ this -> AllowEditByAll ( true ) ; $ aData = $ this -> sqlData ; $ aData [ 'system_order_payment_method_executed' ] = '0' ; $ aData [ 'system_order_payment_method_executed_date' ] = date ( 'Y-m-d H:i:s' ) ; $ this -> LoadFromRow ( $ aData ) ; $ this -> Save ( ) ; $ bPaymentOk = $ this -> ExecutePaymentHook ( $ oPaymentHandler , $ sMessageConsumer ) ; $ this -> AllowEditByAll ( $ bAllowEdit ) ; return $ bPaymentOk ; }
executes payment for order and given payment handler.

@param TdbShopPaymentHandler $oPaymentHandler
@param string                $sMessageConsumer - message consummer to send errors to

@return bool
executes payment for order and given payment handler .