Source/SimpleIdn.php
public function requestIdn($data = array())
    {
        if (count($data) == 0) {
            $this->errorMessage[] = 'IDN DATA: EMPTY';
            return $this->nameData();
        }
        $data['MERCHANT'] = $this->merchantId;
        $this->refnoext = $data['REFNOEXT'];
        unset($data['REFNOEXT']);

        foreach ($this->hashFields as $fieldKey) {
            $data2[$fieldKey] = $data[$fieldKey];
        }
        $irnHash = $this->createHashString($data2);
        $data2['ORDER_HASH'] = $irnHash;
        $this->idnRequest = $data2;
        $this->logFunc("IDN", $this->idnRequest, $this->refnoext);

        $result = $this->startRequest($this->targetUrl, $this->idnRequest, 'POST');
        $this->debugMessage[] = 'IDN RESULT: ' . $result;

        if (is_string($result)) {
            $processed = $this->processResponse($result);
            $this->logFunc("IDN", $processed, $this->refnoext);
            return     $processed;
        }
        $this->debugMessage[] = 'IDN RESULT: NOT STRING';
        return false;
    }
public function requestIdn($data = array())
    {
        if (count($data) == 0) {
            $this->errorMessage[] = 'IDN DATA: EMPTY';
            return $this->nameData();
        }
        $data['MERCHANT'] = $this->merchantId;
        $this->refnoext = $data['REFNOEXT'];
        unset($data['REFNOEXT']);

        foreach ($this->hashFields as $fieldKey) {
            $data2[$fieldKey] = $data[$fieldKey];
        }
        $irnHash = $this->createHashString($data2);
        $data2['ORDER_HASH'] = $irnHash;
        $this->idnRequest = $data2;
        $this->logFunc("IDN", $this->idnRequest, $this->refnoext);

        $result = $this->startRequest($this->targetUrl, $this->idnRequest, 'POST');
        $this->debugMessage[] = 'IDN RESULT: ' . $result;

        if (is_string($result)) {
            $processed = $this->processResponse($result);
            $this->logFunc("IDN", $processed, $this->refnoext);
            return     $processed;
        }
        $this->debugMessage[] = 'IDN RESULT: NOT STRING';
        return false;
    }
public function requestIdn ( $ data = array ( ) ) { if ( count ( $ data ) == 0 ) { $ this -> errorMessage [ ] = 'IDN DATA: EMPTY' ; return $ this -> nameData ( ) ; } $ data [ 'MERCHANT' ] = $ this -> merchantId ; $ this -> refnoext = $ data [ 'REFNOEXT' ] ; unset ( $ data [ 'REFNOEXT' ] ) ; foreach ( $ this -> hashFields as $ fieldKey ) { $ data2 [ $ fieldKey ] = $ data [ $ fieldKey ] ; } $ irnHash = $ this -> createHashString ( $ data2 ) ; $ data2 [ 'ORDER_HASH' ] = $ irnHash ; $ this -> idnRequest = $ data2 ; $ this -> logFunc ( "IDN" , $ this -> idnRequest , $ this -> refnoext ) ; $ result = $ this -> startRequest ( $ this -> targetUrl , $ this -> idnRequest , 'POST' ) ; $ this -> debugMessage [ ] = 'IDN RESULT: ' . $ result ; if ( is_string ( $ result ) ) { $ processed = $ this -> processResponse ( $ result ) ; $ this -> logFunc ( "IDN" , $ processed , $ this -> refnoext ) ; return $ processed ; } $ this -> debugMessage [ ] = 'IDN RESULT: NOT STRING' ; return false ; }
Sends notification via cURL

@param array $data Data array to be sent

@return array $this->nameData() Result
Sends notification via cURL