loadPaymentScript method
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());
}
}