1. Home
  2. Docs
  3. V1
  4. IFrame Capture
  5. Set IFrame Content

Set IFrame Content

async function populateIframe(nonce) {
    var html = await fetchAsync("https://api.paymentworkflowtech.com/v1/iframe?nonce=" + nonce);
    var ifr = document.getElementById("iframe1").contentWindow.document;
    ifr.open();
    ifr.write(html);
    ifr.close();
}

You can also set the IFrame src to the same URL as above.

Was this article helpful to you? Yes No

How can we help?