src/ShopBundle/objects/db/TShopOrder.class.php
public function &GetPaymentHandler()
    {
        $oPaymentHandler = $this->GetFromInternalCache('oOrderPaymentHandler');
        if (is_null($oPaymentHandler)) {
            $oPaymentMethod = $this->GetFieldShopPaymentMethod();
            if ($oPaymentMethod) {
                $aParameter = array();
                $oPaymentParameterList = $this->GetFieldShopOrderPaymentMethodParameterList();
                while ($oParam = $oPaymentParameterList->Next()) {
                    $aParameter[$oParam->fieldName] = $oParam->fieldValue;
                }
                try {
                    $oPaymentHandler = $this->getShopPaymentHandlerFactory()->createPaymentHandler($oPaymentMethod->fieldShopPaymentHandlerId, $this->fieldCmsPortalId, $aParameter);
                    $this->SetInternalCache('oOrderPaymentHandler', $oPaymentHandler);
                } catch (ConfigurationException $e) {
                    $this->getLogger()->error(
                        sprintf('Unable to create payment handler: %s', $e->getMessage()),
                        [
                            'paymentHandlerId' => $oPaymentMethod->fieldShopPaymentHandlerId,
                            'portalId' => $this->fieldCmsPortalId,
                        ]
                    );
                }
            }
        }

        return $oPaymentHandler;
    }
public function &GetPaymentHandler()
    {
        $oPaymentHandler = $this->GetFromInternalCache('oOrderPaymentHandler');
        if (is_null($oPaymentHandler)) {
            $oPaymentMethod = $this->GetFieldShopPaymentMethod();
            if ($oPaymentMethod) {
                $aParameter = array();
                $oPaymentParameterList = $this->GetFieldShopOrderPaymentMethodParameterList();
                while ($oParam = $oPaymentParameterList->Next()) {
                    $aParameter[$oParam->fieldName] = $oParam->fieldValue;
                }
                try {
                    $oPaymentHandler = $this->getShopPaymentHandlerFactory()->createPaymentHandler($oPaymentMethod->fieldShopPaymentHandlerId, $this->fieldCmsPortalId, $aParameter);
                    $this->SetInternalCache('oOrderPaymentHandler', $oPaymentHandler);
                } catch (ConfigurationException $e) {
                    $this->getLogger()->error(
                        sprintf('Unable to create payment handler: %s', $e->getMessage()),
                        [
                            'paymentHandlerId' => $oPaymentMethod->fieldShopPaymentHandlerId,
                            'portalId' => $this->fieldCmsPortalId,
                        ]
                    );
                }
            }
        }

        return $oPaymentHandler;
    }
public function & GetPaymentHandler ( ) { $ oPaymentHandler = $ this -> GetFromInternalCache ( 'oOrderPaymentHandler' ) ; if ( is_null ( $ oPaymentHandler ) ) { $ oPaymentMethod = $ this -> GetFieldShopPaymentMethod ( ) ; if ( $ oPaymentMethod ) { $ aParameter = array ( ) ; $ oPaymentParameterList = $ this -> GetFieldShopOrderPaymentMethodParameterList ( ) ; while ( $ oParam = $ oPaymentParameterList -> Next ( ) ) { $ aParameter [ $ oParam -> fieldName ] = $ oParam -> fieldValue ; } try { $ oPaymentHandler = $ this -> getShopPaymentHandlerFactory ( ) -> createPaymentHandler ( $ oPaymentMethod -> fieldShopPaymentHandlerId , $ this -> fieldCmsPortalId , $ aParameter ) ; $ this -> SetInternalCache ( 'oOrderPaymentHandler' , $ oPaymentHandler ) ; } catch ( ConfigurationException $ e ) { $ this -> getLogger ( ) -> error ( sprintf ( 'Unable to create payment handler: %s' , $ e -> getMessage ( ) ) , [ 'paymentHandlerId' => $ oPaymentMethod -> fieldShopPaymentHandlerId , 'portalId' => $ this -> fieldCmsPortalId , ] ) ; } } } return $ oPaymentHandler ; }
return the payment handler for the order - the handler is initialized
with the payment data from the order object.

@return TdbShopPaymentHandler|null
return the payment handler for the order - the handler is initialized with the payment data from the order object .