src/ShopBundle/objects/db/TShopPaymentHandler/TShopPaymentHandlerOgoneAliasGateway.class.php
protected function GetUserPaymentData()
    {
        parent::GetUserPaymentData();

        $oGlobal = TGlobal::instance();
        //if no new payment data was submitted try to get the data from the active payment method
        if (!$oGlobal->UserDataExists(TdbShopPaymentHandler::URL_PAYMENT_USER_INPUT) && !isset($this->aPaymentUserData['NCERROR'])) {
            $oBasket = TShopBasket::GetInstance();
            $oPaymentMethod = &$oBasket->GetActivePaymentMethod();
            if (null !== $oPaymentMethod) {
                $oPaymentHandler = $oPaymentMethod->GetFieldShopPaymentHandler();
                if ($oPaymentHandler instanceof self) {
                    $this->aPaymentUserData = $oPaymentHandler->GetUserPaymentDataWithoutLoading();
                }
            }
        }
        $this->MapExpireDateFromAPI();
        $this->HandleError();

        return $this->aPaymentUserData;
    }
protected function GetUserPaymentData()
    {
        parent::GetUserPaymentData();

        $oGlobal = TGlobal::instance();
        //if no new payment data was submitted try to get the data from the active payment method
        if (!$oGlobal->UserDataExists(TdbShopPaymentHandler::URL_PAYMENT_USER_INPUT) && !isset($this->aPaymentUserData['NCERROR'])) {
            $oBasket = TShopBasket::GetInstance();
            $oPaymentMethod = &$oBasket->GetActivePaymentMethod();
            if (null !== $oPaymentMethod) {
                $oPaymentHandler = $oPaymentMethod->GetFieldShopPaymentHandler();
                if ($oPaymentHandler instanceof self) {
                    $this->aPaymentUserData = $oPaymentHandler->GetUserPaymentDataWithoutLoading();
                }
            }
        }
        $this->MapExpireDateFromAPI();
        $this->HandleError();

        return $this->aPaymentUserData;
    }
protected function GetUserPaymentData ( ) { parent :: GetUserPaymentData ( ) ; $ oGlobal = TGlobal :: instance ( ) ; //if no new payment data was submitted try to get the data from the active payment method if ( ! $ oGlobal -> UserDataExists ( TdbShopPaymentHandler :: URL_PAYMENT_USER_INPUT ) && ! isset ( $ this -> aPaymentUserData [ 'NCERROR' ] ) ) { $ oBasket = TShopBasket :: GetInstance ( ) ; $ oPaymentMethod = & $ oBasket -> GetActivePaymentMethod ( ) ; if ( null !== $ oPaymentMethod ) { $ oPaymentHandler = $ oPaymentMethod -> GetFieldShopPaymentHandler ( ) ; if ( $ oPaymentHandler instanceof self ) { $ this -> aPaymentUserData = $ oPaymentHandler -> GetUserPaymentDataWithoutLoading ( ) ; } } } $ this -> MapExpireDateFromAPI ( ) ; $ this -> HandleError ( ) ; return $ this -> aPaymentUserData ; }
load user payment data
overload the payment data with post data or the data of the active payment handler from the basket object if there is one.

@return array
load user payment data overload the payment data with post data or the data of the active payment handler from the basket object if there is one .