loadPaymentScript method

Future<void> loadPaymentScript(
  1. String url
)

Implementation

Future<void> loadPaymentScript(String url) async {
  if (url.startsWith(widget.INAPP_URL)) {
    for (String script in await getBootpayJSBeforeContentLoaded()) {
      widget._controller.runJavaScript(script);
    }
    print("add close event");

    widget._controller.runJavaScript(getBootpayJS());
  }
}