getBootpayJS method

String getBootpayJS()

Implementation

String getBootpayJS() {

  String script = "BootPay.request(${this.widget.payload.toString()})" +
      error() +
      cancel() +
      ready() +
      confirm() +
      close() +
      done();


  return "setTimeout(function() {" + script + "}, 50);";
}