done static method

String done()

Implementation

static String done() {
  var script = "if (window.BootpayDone && window.BootpayDone.postMessage) { BootpayDone.postMessage(JSON.stringify(data)); }";
  return  "if (data.event === 'done') { $script }";
}