transactionConfirm method

void transactionConfirm()

Implementation

void transactionConfirm() {

  String script = "Bootpay.confirm()" +
      ".then( function (data) {" +
      _confirm() +
      _issued() +
      _done() +
      "}, function (data) {" +
      _error() +
      _cancel() +
      "});";

  webView?.controller?.runJavaScript(
      script
  );

  // webView?.controller?.future.then((controller) {
  //   controller.runJavascript(
  //     script
  //   );
  // });
}