src/ShopBundle/objects/db/TShopPaymentHandler/TShopPaymentHandlerIPaymentEndPoint.class.php
protected function GetStandardInputFieldParameter($aParameter = array())
    {
        if (!is_array($aParameter)) {
            $aParameter = array();
        }

        $oShopBasket = TShopBasket::GetInstance();

        $aParameter['ppcdccd'] = '51a492928930f294568ff'; // chameleon ipayment identifier
        $aParameter['trxuser_id'] = $this->GetConfigParameter('trxuser_id');
        $aParameter['trxpassword'] = $this->GetConfigParameter('transaction_password');
        $aParameter['adminactionpassword'] = $this->GetConfigParameter('adminactionpassword');
        $aParameter['silent'] = $this->GetConfigParameter('silent_mode');
        $aParameter['advanced_strict_id_check'] = $this->GetConfigParameter('advanced_strict_id_check');
        $aParameter['return_paymentdata_details'] = $this->GetConfigParameter('return_paymentdata_details');

        $aParameter['shopper_id'] = $oShopBasket->sBasketIdentifier;
        $aParameter['trx_amount'] = round($oShopBasket->dCostTotal * 100, 0);
        $aParameter['trx_currency'] = $this->GetCurrencyIdentifier();

        $sSecurityHash = $this->GenerateSecurityHash($aParameter);
        if (!empty($sSecurityHash)) {
            $aParameter['trx_securityhash'] = $sSecurityHash;
        }

        $oStep = $this->GetActiveOrderStep();
        $redirectUrl = $this->GetExecutePaymentErrorURL($oStep->fieldSystemname);
        $aParameter['redirect_url'] = $redirectUrl.'/'.self::URL_PARAMETER_NAME.'/success';
        $aParameter['silent_error_url'] = $redirectUrl.'/'.self::URL_PARAMETER_NAME.'/error';

        return $aParameter;
    }
protected function GetStandardInputFieldParameter($aParameter = array())
    {
        if (!is_array($aParameter)) {
            $aParameter = array();
        }

        $oShopBasket = TShopBasket::GetInstance();

        $aParameter['ppcdccd'] = '51a492928930f294568ff'; // chameleon ipayment identifier
        $aParameter['trxuser_id'] = $this->GetConfigParameter('trxuser_id');
        $aParameter['trxpassword'] = $this->GetConfigParameter('transaction_password');
        $aParameter['adminactionpassword'] = $this->GetConfigParameter('adminactionpassword');
        $aParameter['silent'] = $this->GetConfigParameter('silent_mode');
        $aParameter['advanced_strict_id_check'] = $this->GetConfigParameter('advanced_strict_id_check');
        $aParameter['return_paymentdata_details'] = $this->GetConfigParameter('return_paymentdata_details');

        $aParameter['shopper_id'] = $oShopBasket->sBasketIdentifier;
        $aParameter['trx_amount'] = round($oShopBasket->dCostTotal * 100, 0);
        $aParameter['trx_currency'] = $this->GetCurrencyIdentifier();

        $sSecurityHash = $this->GenerateSecurityHash($aParameter);
        if (!empty($sSecurityHash)) {
            $aParameter['trx_securityhash'] = $sSecurityHash;
        }

        $oStep = $this->GetActiveOrderStep();
        $redirectUrl = $this->GetExecutePaymentErrorURL($oStep->fieldSystemname);
        $aParameter['redirect_url'] = $redirectUrl.'/'.self::URL_PARAMETER_NAME.'/success';
        $aParameter['silent_error_url'] = $redirectUrl.'/'.self::URL_PARAMETER_NAME.'/error';

        return $aParameter;
    }
protected function GetStandardInputFieldParameter ( $ aParameter = array ( ) ) { if ( ! is_array ( $ aParameter ) ) { $ aParameter = array ( ) ; } $ oShopBasket = TShopBasket :: GetInstance ( ) ; $ aParameter [ 'ppcdccd' ] = '51a492928930f294568ff' ; // chameleon ipayment identifier $ aParameter [ 'trxuser_id' ] = $ this -> GetConfigParameter ( 'trxuser_id' ) ; $ aParameter [ 'trxpassword' ] = $ this -> GetConfigParameter ( 'transaction_password' ) ; $ aParameter [ 'adminactionpassword' ] = $ this -> GetConfigParameter ( 'adminactionpassword' ) ; $ aParameter [ 'silent' ] = $ this -> GetConfigParameter ( 'silent_mode' ) ; $ aParameter [ 'advanced_strict_id_check' ] = $ this -> GetConfigParameter ( 'advanced_strict_id_check' ) ; $ aParameter [ 'return_paymentdata_details' ] = $ this -> GetConfigParameter ( 'return_paymentdata_details' ) ; $ aParameter [ 'shopper_id' ] = $ oShopBasket -> sBasketIdentifier ; $ aParameter [ 'trx_amount' ] = round ( $ oShopBasket -> dCostTotal * 100 , 0 ) ; $ aParameter [ 'trx_currency' ] = $ this -> GetCurrencyIdentifier ( ) ; $ sSecurityHash = $ this -> GenerateSecurityHash ( $ aParameter ) ; if ( ! empty ( $ sSecurityHash ) ) { $ aParameter [ 'trx_securityhash' ] = $ sSecurityHash ; } $ oStep = $ this -> GetActiveOrderStep ( ) ; $ redirectUrl = $ this -> GetExecutePaymentErrorURL ( $ oStep -> fieldSystemname ) ; $ aParameter [ 'redirect_url' ] = $ redirectUrl . '/' . self :: URL_PARAMETER_NAME . '/success' ; $ aParameter [ 'silent_error_url' ] = $ redirectUrl . '/' . self :: URL_PARAMETER_NAME . '/error' ; return $ aParameter ; }
Get standard parameters needed for all requests to Ipayment.

@param array $aParameter

@return array $aParameter
Get standard parameters needed for all requests to Ipayment .