{"id":76,"date":"2025-11-08T14:49:59","date_gmt":"2025-11-08T14:49:59","guid":{"rendered":"https:\/\/smilokidz.com\/payments\/?page_id=76"},"modified":"2025-11-08T14:51:11","modified_gmt":"2025-11-08T14:51:11","slug":"payment-confirmation","status":"publish","type":"page","link":"https:\/\/smilokidz.com\/payments\/payment-confirmation\/","title":{"rendered":"Payment Confirmation"},"content":{"rendered":"\n<h2>Payment Successful!<\/h2>\n<p>Your payment has been received. Details will appear below.<\/p>\n\n<div id=\"payment-details\"><\/div>\n\n<script>\ndocument.addEventListener('DOMContentLoaded', function() {\n    const orderId = new URLSearchParams(window.location.search).get('orderId') || sessionStorage.getItem('orderId');\n    const name = sessionStorage.getItem('name');\n    const email = sessionStorage.getItem('email');\n    const phone = sessionStorage.getItem('phone');\n\n    \/\/ PhonePe usually passes payment mode in callback, for demo we show placeholder\n    const paymentMode = 'Payment Mode (UPI\/Card\/NetBanking\/Wallet)';\n\n    if(orderId){\n        document.getElementById('payment-details').innerHTML = `\n            <p><strong>Order ID:<\/strong> ${orderId}<\/p>\n            <p><strong>Name:<\/strong> ${name}<\/p>\n            <p><strong>Email:<\/strong> ${email}<\/p>\n            <p><strong>Phone:<\/strong> ${phone}<\/p>\n            <p><strong>Payment Mode:<\/strong> ${paymentMode}<\/p>\n            <p><strong>Amount Paid:<\/strong> \u20b92250<\/p>\n        `;\n    }\n});\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>Payment Successful! Your payment has been received. Details will appear below.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-76","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/smilokidz.com\/payments\/wp-json\/wp\/v2\/pages\/76","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smilokidz.com\/payments\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/smilokidz.com\/payments\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/smilokidz.com\/payments\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smilokidz.com\/payments\/wp-json\/wp\/v2\/comments?post=76"}],"version-history":[{"count":2,"href":"https:\/\/smilokidz.com\/payments\/wp-json\/wp\/v2\/pages\/76\/revisions"}],"predecessor-version":[{"id":78,"href":"https:\/\/smilokidz.com\/payments\/wp-json\/wp\/v2\/pages\/76\/revisions\/78"}],"wp:attachment":[{"href":"https:\/\/smilokidz.com\/payments\/wp-json\/wp\/v2\/media?parent=76"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}