onCancelJS method

Future<void> onCancelJS(
  1. JavaScriptMessage message
)

Implementation

Future<void> onCancelJS(JavaScriptMessage message) async {
  onProgressShow(false);
  widget.paymentResult = BootpayPaymentResult.CANCEL;

  if (this.widget.onCancel != null)
    this.widget.onCancel!(message.message);
}