onFailure method

dynamic onFailure(
  1. PaymentFailureResponse response,
  2. dynamic failureLitener
)

Registers event listeners for payment failures events

Implementation

onFailure(PaymentFailureResponse response, failureLitener) {
  failureLitener(UniPaymentResponse(
      response.error!['description'], false, response.error!['reason']));
}