protected function getStatus($response, $isRedirect)
    {
        if ($isRedirect) {
            return new Status('pending');
        }

        if (isset($response['PAYMENTINFO_0_PAYMENTSTATUS'])
            && $response['PAYMENTINFO_0_PAYMENTSTATUS'] == 'Pending') {
            return new Status('pending');
        }

        return new Status('paid');
    }
protected function getStatus($response, $isRedirect)
    {
        if ($isRedirect) {
            return new Status('pending');
        }

        if (isset($response['PAYMENTINFO_0_PAYMENTSTATUS'])
            && $response['PAYMENTINFO_0_PAYMENTSTATUS'] == 'Pending') {
            return new Status('pending');
        }

        return new Status('paid');
    }
protected function getStatus ( $ response , $ isRedirect ) { if ( $ isRedirect ) { return new Status ( 'pending' ) ; } if ( isset ( $ response [ 'PAYMENTINFO_0_PAYMENTSTATUS' ] ) && $ response [ 'PAYMENTINFO_0_PAYMENTSTATUS' ] == 'Pending' ) { return new Status ( 'pending' ) ; } return new Status ( 'paid' ) ; }
Map PayPal response to status object.

@param array $response
@param bool  $isRedirect

@return \Shoperti\PayMe\Status
Map PayPal response to status object .