protected function getErrorCode($response)
    {
        $code = Arr::get($response['error'], 'code', 'PaymentException');
        if (!isset($this->errorCodeMap[$code])) {
            $code = 'PaymentException';
        }

        return new ErrorCode($this->errorCodeMap[$code]);
    }
protected function getErrorCode($response)
    {
        $code = Arr::get($response['error'], 'code', 'PaymentException');
        if (!isset($this->errorCodeMap[$code])) {
            $code = 'PaymentException';
        }

        return new ErrorCode($this->errorCodeMap[$code]);
    }
protected function getErrorCode ( $ response ) { $ code = Arr :: get ( $ response [ 'error' ] , 'code' , 'PaymentException' ) ; if ( ! isset ( $ this -> errorCodeMap [ $ code ] ) ) { $ code = 'PaymentException' ; } return new ErrorCode ( $ this -> errorCodeMap [ $ code ] ) ; }
Map SrPago response to error code object.

@param array $response

@return \Shoperti\PayMe\ErrorCode
Map SrPago response to error code object .