Source/SimpleBackRef.php
protected function checkIOSStatus($ios)
    {
        $this->backStatusArray['ORDER_STATUS'] = (isset($ios->status['ORDER_STATUS'])) ? $ios->status['ORDER_STATUS'] : 'IOS_ERROR';
        $this->backStatusArray['PAYMETHOD'] = (isset($ios->status['PAYMETHOD'])) ? $ios->status['PAYMETHOD'] : 'N/A';
        if (in_array(trim($ios->status['ORDER_STATUS']), $this->successfulStatus)) {
            $this->backStatusArray['RESULT'] = true;
        } elseif (in_array(trim($ios->status['ORDER_STATUS']), $this->unsuccessfulStatus)) {
            $this->backStatusArray['RESULT'] = false;
            $this->errorMessage[] = 'IOS STATUS: UNSUCCESSFUL!';
        }
    }
protected function checkIOSStatus($ios)
    {
        $this->backStatusArray['ORDER_STATUS'] = (isset($ios->status['ORDER_STATUS'])) ? $ios->status['ORDER_STATUS'] : 'IOS_ERROR';
        $this->backStatusArray['PAYMETHOD'] = (isset($ios->status['PAYMETHOD'])) ? $ios->status['PAYMETHOD'] : 'N/A';
        if (in_array(trim($ios->status['ORDER_STATUS']), $this->successfulStatus)) {
            $this->backStatusArray['RESULT'] = true;
        } elseif (in_array(trim($ios->status['ORDER_STATUS']), $this->unsuccessfulStatus)) {
            $this->backStatusArray['RESULT'] = false;
            $this->errorMessage[] = 'IOS STATUS: UNSUCCESSFUL!';
        }
    }
protected function checkIOSStatus ( $ ios ) { $ this -> backStatusArray [ 'ORDER_STATUS' ] = ( isset ( $ ios -> status [ 'ORDER_STATUS' ] ) ) ? $ ios -> status [ 'ORDER_STATUS' ] : 'IOS_ERROR' ; $ this -> backStatusArray [ 'PAYMETHOD' ] = ( isset ( $ ios -> status [ 'PAYMETHOD' ] ) ) ? $ ios -> status [ 'PAYMETHOD' ] : 'N/A' ; if ( in_array ( trim ( $ ios -> status [ 'ORDER_STATUS' ] ) , $ this -> successfulStatus ) ) { $ this -> backStatusArray [ 'RESULT' ] = true ; } elseif ( in_array ( trim ( $ ios -> status [ 'ORDER_STATUS' ] ) , $ this -> unsuccessfulStatus ) ) { $ this -> backStatusArray [ 'RESULT' ] = false ; $ this -> errorMessage [ ] = 'IOS STATUS: UNSUCCESSFUL!' ; } }
Check IOS result

@param obj $ios Result of IOS comunication

@return boolean
Check IOS result