const e=window.externalIframeConfig||{};e.usePaytrResizer&&typeof window.iFrameResize=="function"&&window.iFrameResize({log:!1,checkOrigin:!1},"#payment-external-iframe");window.addEventListener("message",s=>{const i=s.data;!i||i.type!=="payment_completed"||(i.status==="success"&&e.successUrl?window.location.href=e.successUrl:i.status==="failed"&&e.failedUrl&&(window.location.href=e.failedUrl))});
