Order Received Successfully!

initialize(); async function initialize() { const queryString = window.location.search; const urlParams = new URLSearchParams(queryString); const sessionId = urlParams.get('session_id'); const response = await fetch(`https://api.doonline.cc/session-status?session_id=${sessionId}`); const session = await response.json(); if (session.status == 'open') { window.replace('https://checkout.eeducationservices.com') } else if (session.status == 'complete') { document.getElementById('success').classList.remove('hidden'); document.getElementById('customer-email').textContent = session.customer_email; document.getElementById('payment-id').textContent = session.payment_id; } }