Source/SimpleBackRef.php
public function checkResponse()
    {
        if (!isset($this->order_ref)) {
            $this->errorMessage[] = 'CHECK RESPONSE: Missing order_ref variable!';
            return false;
        }
        $this->logFunc("BackRef", $this->getData, $this->order_ref);

        if (!$this->checkCtrl()) {
            $this->errorMessage[] = 'CHECK RESPONSE: INVALID CTRL!';
            return false;
        }

        $ios = new SimpleIos($this->iosConfig, $this->getData['order_currency'], $this->order_ref);

        foreach ($ios->errorMessage as $msg) {
            $this->errorMessage[] = $msg;
        }
        foreach ($ios->debugMessage as $msg) {
            $this->debugMessage[] = $msg;
        }

        if (is_object($ios)) {
            $this->checkIOSStatus($ios);
        }
        $this->logFunc("BackRef_BackStatus", $this->backStatusArray, $this->order_ref);
        if (!$this->checkRtVariable($ios)) {
            return false;
        }
        if (!$this->backStatusArray['RESULT']) {
            return false;
        }
        return true;
    }
public function checkResponse()
    {
        if (!isset($this->order_ref)) {
            $this->errorMessage[] = 'CHECK RESPONSE: Missing order_ref variable!';
            return false;
        }
        $this->logFunc("BackRef", $this->getData, $this->order_ref);

        if (!$this->checkCtrl()) {
            $this->errorMessage[] = 'CHECK RESPONSE: INVALID CTRL!';
            return false;
        }

        $ios = new SimpleIos($this->iosConfig, $this->getData['order_currency'], $this->order_ref);

        foreach ($ios->errorMessage as $msg) {
            $this->errorMessage[] = $msg;
        }
        foreach ($ios->debugMessage as $msg) {
            $this->debugMessage[] = $msg;
        }

        if (is_object($ios)) {
            $this->checkIOSStatus($ios);
        }
        $this->logFunc("BackRef_BackStatus", $this->backStatusArray, $this->order_ref);
        if (!$this->checkRtVariable($ios)) {
            return false;
        }
        if (!$this->backStatusArray['RESULT']) {
            return false;
        }
        return true;
    }
public function checkResponse ( ) { if ( ! isset ( $ this -> order_ref ) ) { $ this -> errorMessage [ ] = 'CHECK RESPONSE: Missing order_ref variable!' ; return false ; } $ this -> logFunc ( "BackRef" , $ this -> getData , $ this -> order_ref ) ; if ( ! $ this -> checkCtrl ( ) ) { $ this -> errorMessage [ ] = 'CHECK RESPONSE: INVALID CTRL!' ; return false ; } $ ios = new SimpleIos ( $ this -> iosConfig , $ this -> getData [ 'order_currency' ] , $ this -> order_ref ) ; foreach ( $ ios -> errorMessage as $ msg ) { $ this -> errorMessage [ ] = $ msg ; } foreach ( $ ios -> debugMessage as $ msg ) { $ this -> debugMessage [ ] = $ msg ; } if ( is_object ( $ ios ) ) { $ this -> checkIOSStatus ( $ ios ) ; } $ this -> logFunc ( "BackRef_BackStatus" , $ this -> backStatusArray , $ this -> order_ref ) ; if ( ! $ this -> checkRtVariable ( $ ios ) ) { return false ; } if ( ! $ this -> backStatusArray [ 'RESULT' ] ) { return false ; } return true ; }
Check card authorization response

1. check ctrl
2. check RC & RT
3. check IOS status

@return boolean
Check card authorization response