getPaymentResponse method

PaymentResponse getPaymentResponse()

Returns the payment response if not null otherwise throws an exception

Implementation

PaymentResponse getPaymentResponse() {
  if (paymentResponse == null) {
    throw Exception('Payment response is null, cannot be acquired');
  }
  return paymentResponse as PaymentResponse;
}