src/ShopBundle/objects/db/TShopPaymentHandler/TShopPaymentHandlerSofortueberweisung.class.php
protected function BuildIncomingHash($aParameter)
    {
        $sHash = '';
        $aBaseData = array();
        if (false == $this->UsesAccountFromSofortBank()) {
            $aBaseData = array('transaction' => '', 'user_id' => '', 'project_id' => '', 'sender_holder' => '', 'sender_account_number' => '', 'sender_bank_code' => '', 'sender_bank_name' => '', 'sender_bank_bic' => '', 'sender_iban' => '', 'sender_country_id' => '', 'recipient_holder' => '', 'recipient_account_number' => '', 'recipient_bank_code' => '', 'recipient_bank_name' => '', 'recipient_bank_bic' => '', 'recipient_iban' => '', 'recipient_country_id' => '', 'international_transaction' => '', 'amount' => '', 'currency_id' => '', 'reason_1' => '', 'reason_2' => '', 'security_criteria' => '', 'user_variable_0' => '', 'user_variable_1' => '', 'user_variable_2' => '', 'user_variable_3' => '', 'user_variable_4' => '', 'user_variable_5' => '', 'created' => '', //          'status'=>'',
//          'status_modified'=>'',
                'notification_password' => $this->GetConfigParameter('notification_password'), );
        } else {
            $aBaseData = array('transaction' => '', 'user_id' => '', 'project_id' => '', 'sender_holder' => '', 'sender_account_number' => '', 'sender_bank_code' => '', 'sender_bank_name' => '', 'sender_bank_bic' => '', 'sender_iban' => '', 'sender_country_id' => '', 'recipient_holder' => '', 'recipient_account_number' => '', 'recipient_bank_code' => '', 'recipient_bank_name' => '', 'recipient_bank_bic' => '', 'recipient_iban' => '', 'recipient_country_id' => '', 'international_transaction' => '', 'amount' => '', 'currency_id' => '', 'reason_1' => '', 'reason_2' => '', 'security_criteria' => '', 'user_variable_0' => '', 'user_variable_1' => '', 'user_variable_2' => '', 'user_variable_3' => '', 'user_variable_4' => '', 'user_variable_5' => '', 'created' => '', 'notification_password' => $this->GetConfigParameter('notification_password'));
        }

        foreach (array_keys($aBaseData) as $sBaseDataKey) {
            if (array_key_exists($sBaseDataKey, $aParameter)) {
                $aBaseData[$sBaseDataKey] = $aParameter[$sBaseDataKey];
            }
        }
        $sRawHash = implode('|', array_values($aBaseData));
        $sHash = hash('sha256', $sRawHash);

        return $sHash;
    }
protected function BuildIncomingHash($aParameter)
    {
        $sHash = '';
        $aBaseData = array();
        if (false == $this->UsesAccountFromSofortBank()) {
            $aBaseData = array('transaction' => '', 'user_id' => '', 'project_id' => '', 'sender_holder' => '', 'sender_account_number' => '', 'sender_bank_code' => '', 'sender_bank_name' => '', 'sender_bank_bic' => '', 'sender_iban' => '', 'sender_country_id' => '', 'recipient_holder' => '', 'recipient_account_number' => '', 'recipient_bank_code' => '', 'recipient_bank_name' => '', 'recipient_bank_bic' => '', 'recipient_iban' => '', 'recipient_country_id' => '', 'international_transaction' => '', 'amount' => '', 'currency_id' => '', 'reason_1' => '', 'reason_2' => '', 'security_criteria' => '', 'user_variable_0' => '', 'user_variable_1' => '', 'user_variable_2' => '', 'user_variable_3' => '', 'user_variable_4' => '', 'user_variable_5' => '', 'created' => '', //          'status'=>'',
//          'status_modified'=>'',
                'notification_password' => $this->GetConfigParameter('notification_password'), );
        } else {
            $aBaseData = array('transaction' => '', 'user_id' => '', 'project_id' => '', 'sender_holder' => '', 'sender_account_number' => '', 'sender_bank_code' => '', 'sender_bank_name' => '', 'sender_bank_bic' => '', 'sender_iban' => '', 'sender_country_id' => '', 'recipient_holder' => '', 'recipient_account_number' => '', 'recipient_bank_code' => '', 'recipient_bank_name' => '', 'recipient_bank_bic' => '', 'recipient_iban' => '', 'recipient_country_id' => '', 'international_transaction' => '', 'amount' => '', 'currency_id' => '', 'reason_1' => '', 'reason_2' => '', 'security_criteria' => '', 'user_variable_0' => '', 'user_variable_1' => '', 'user_variable_2' => '', 'user_variable_3' => '', 'user_variable_4' => '', 'user_variable_5' => '', 'created' => '', 'notification_password' => $this->GetConfigParameter('notification_password'));
        }

        foreach (array_keys($aBaseData) as $sBaseDataKey) {
            if (array_key_exists($sBaseDataKey, $aParameter)) {
                $aBaseData[$sBaseDataKey] = $aParameter[$sBaseDataKey];
            }
        }
        $sRawHash = implode('|', array_values($aBaseData));
        $sHash = hash('sha256', $sRawHash);

        return $sHash;
    }
protected function BuildIncomingHash ( $ aParameter ) { $ sHash = '' ; $ aBaseData = array ( ) ; if ( false == $ this -> UsesAccountFromSofortBank ( ) ) { $ aBaseData = array ( 'transaction' => '' , 'user_id' => '' , 'project_id' => '' , 'sender_holder' => '' , 'sender_account_number' => '' , 'sender_bank_code' => '' , 'sender_bank_name' => '' , 'sender_bank_bic' => '' , 'sender_iban' => '' , 'sender_country_id' => '' , 'recipient_holder' => '' , 'recipient_account_number' => '' , 'recipient_bank_code' => '' , 'recipient_bank_name' => '' , 'recipient_bank_bic' => '' , 'recipient_iban' => '' , 'recipient_country_id' => '' , 'international_transaction' => '' , 'amount' => '' , 'currency_id' => '' , 'reason_1' => '' , 'reason_2' => '' , 'security_criteria' => '' , 'user_variable_0' => '' , 'user_variable_1' => '' , 'user_variable_2' => '' , 'user_variable_3' => '' , 'user_variable_4' => '' , 'user_variable_5' => '' , 'created' => '' , //          'status'=>'', //          'status_modified'=>'', 'notification_password' => $ this -> GetConfigParameter ( 'notification_password' ) , ) ; } else { $ aBaseData = array ( 'transaction' => '' , 'user_id' => '' , 'project_id' => '' , 'sender_holder' => '' , 'sender_account_number' => '' , 'sender_bank_code' => '' , 'sender_bank_name' => '' , 'sender_bank_bic' => '' , 'sender_iban' => '' , 'sender_country_id' => '' , 'recipient_holder' => '' , 'recipient_account_number' => '' , 'recipient_bank_code' => '' , 'recipient_bank_name' => '' , 'recipient_bank_bic' => '' , 'recipient_iban' => '' , 'recipient_country_id' => '' , 'international_transaction' => '' , 'amount' => '' , 'currency_id' => '' , 'reason_1' => '' , 'reason_2' => '' , 'security_criteria' => '' , 'user_variable_0' => '' , 'user_variable_1' => '' , 'user_variable_2' => '' , 'user_variable_3' => '' , 'user_variable_4' => '' , 'user_variable_5' => '' , 'created' => '' , 'notification_password' => $ this -> GetConfigParameter ( 'notification_password' ) ) ; } foreach ( array_keys ( $ aBaseData ) as $ sBaseDataKey ) { if ( array_key_exists ( $ sBaseDataKey , $ aParameter ) ) { $ aBaseData [ $ sBaseDataKey ] = $ aParameter [ $ sBaseDataKey ] ; } } $ sRawHash = implode ( '|' , array_values ( $ aBaseData ) ) ; $ sHash = hash ( 'sha256' , $ sRawHash ) ; return $ sHash ; }
build incoming hash string from data provided by sofortueberweisung.

@param array $aParameter

@return string
build incoming hash string from data provided by sofortueberweisung .