Closes the iframe and remove the the iframe element form the DOM. Note that it will also trigger onClose callback if passed in init method.
init
tbIframe.close();
// Close payment iframe function closeIframe() { tbIframe.close(); } document.getElementById('close_button').addEventListener('click', ()=>closeIframe());