onErrorJS method

Future<void> onErrorJS(
  1. JavaScriptMessage message
)

Implementation

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

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