added isPending method to PaymentResponse