src/ShopBundle/objects/db/TShopPaymentHandler/TShopPaymentHandlerIPaymentEndPoint.class.php
protected function GetPayFieldParameter($aParameter = array(), $oOrder)
    {
        if (!is_array($aParameter)) {
            $aParameter = array();
        }
        $aParameter = $this->GetStandardInputFieldParameter($aParameter);
        if (!empty($this->sStorageId)) {
            $aParameter['from_datastorage_id'] = $this->sStorageId;
        }
        $oShopBasket = TShopBasket::GetInstance();
        $oActivePaymentMethod = $oShopBasket->GetActivePaymentMethod();
        $aParameter['shop_payment_method_id'] = $oActivePaymentMethod->id;
        $redirectUrl = $this->GetRedirectUrl();
        $sSilentErrorURL = $this->GetExecutePaymentErrorURL();
        if ($sSilentErrorURL) {
            $aParameter['silent_error_url'] = $sSilentErrorURL.'/'.self::URL_PARAMETER_NAME.'/error';
        }
        $aParameter['redirect_url'] = $redirectUrl;
        $oIPNManager = new TPkgShopPaymentIPNManager();
        $oPortal = $this->getPortalDomainService()->getActivePortal();
        $aParameter['hidden_trigger_url'] = $oIPNManager->getIPNURL($oPortal, $oOrder);
        $aParameter['expire_datastorage'] = true;
        $aParameter['execute_order'] = true;
        $oGlobal = TGlobal::instance();
        $aParameter['spot'] = $oGlobal->GetExecutingModulePointer()->sModuleSpotName;
        $aParameter['trx_typ'] = $this->GetConfigParameter('trx_typ_pay');

        return $aParameter;
    }
protected function GetPayFieldParameter($aParameter = array(), $oOrder)
    {
        if (!is_array($aParameter)) {
            $aParameter = array();
        }
        $aParameter = $this->GetStandardInputFieldParameter($aParameter);
        if (!empty($this->sStorageId)) {
            $aParameter['from_datastorage_id'] = $this->sStorageId;
        }
        $oShopBasket = TShopBasket::GetInstance();
        $oActivePaymentMethod = $oShopBasket->GetActivePaymentMethod();
        $aParameter['shop_payment_method_id'] = $oActivePaymentMethod->id;
        $redirectUrl = $this->GetRedirectUrl();
        $sSilentErrorURL = $this->GetExecutePaymentErrorURL();
        if ($sSilentErrorURL) {
            $aParameter['silent_error_url'] = $sSilentErrorURL.'/'.self::URL_PARAMETER_NAME.'/error';
        }
        $aParameter['redirect_url'] = $redirectUrl;
        $oIPNManager = new TPkgShopPaymentIPNManager();
        $oPortal = $this->getPortalDomainService()->getActivePortal();
        $aParameter['hidden_trigger_url'] = $oIPNManager->getIPNURL($oPortal, $oOrder);
        $aParameter['expire_datastorage'] = true;
        $aParameter['execute_order'] = true;
        $oGlobal = TGlobal::instance();
        $aParameter['spot'] = $oGlobal->GetExecutingModulePointer()->sModuleSpotName;
        $aParameter['trx_typ'] = $this->GetConfigParameter('trx_typ_pay');

        return $aParameter;
    }
protected function GetPayFieldParameter ( $ aParameter = array ( ) , $ oOrder ) { if ( ! is_array ( $ aParameter ) ) { $ aParameter = array ( ) ; } $ aParameter = $ this -> GetStandardInputFieldParameter ( $ aParameter ) ; if ( ! empty ( $ this -> sStorageId ) ) { $ aParameter [ 'from_datastorage_id' ] = $ this -> sStorageId ; } $ oShopBasket = TShopBasket :: GetInstance ( ) ; $ oActivePaymentMethod = $ oShopBasket -> GetActivePaymentMethod ( ) ; $ aParameter [ 'shop_payment_method_id' ] = $ oActivePaymentMethod -> id ; $ redirectUrl = $ this -> GetRedirectUrl ( ) ; $ sSilentErrorURL = $ this -> GetExecutePaymentErrorURL ( ) ; if ( $ sSilentErrorURL ) { $ aParameter [ 'silent_error_url' ] = $ sSilentErrorURL . '/' . self :: URL_PARAMETER_NAME . '/error' ; } $ aParameter [ 'redirect_url' ] = $ redirectUrl ; $ oIPNManager = new TPkgShopPaymentIPNManager ( ) ; $ oPortal = $ this -> getPortalDomainService ( ) -> getActivePortal ( ) ; $ aParameter [ 'hidden_trigger_url' ] = $ oIPNManager -> getIPNURL ( $ oPortal , $ oOrder ) ; $ aParameter [ 'expire_datastorage' ] = true ; $ aParameter [ 'execute_order' ] = true ; $ oGlobal = TGlobal :: instance ( ) ; $ aParameter [ 'spot' ] = $ oGlobal -> GetExecutingModulePointer ( ) -> sModuleSpotName ; $ aParameter [ 'trx_typ' ] = $ this -> GetConfigParameter ( 'trx_typ_pay' ) ; return $ aParameter ; }
Get parameter to pay a transaction on IPayment with saved storage id.

@param array $aParameter

@return array $aParameter
Get parameter to pay a transaction on IPayment with saved storage id .