

{"id":24863,"date":"2026-03-18T15:21:33","date_gmt":"2026-03-18T11:21:33","guid":{"rendered":"https:\/\/zseeb.om\/?page_id=24863"},"modified":"2026-03-18T15:21:34","modified_gmt":"2026-03-18T11:21:34","slug":"secure-donation","status":"publish","type":"page","link":"https:\/\/zseeb.om\/en\/secure-donation\/","title":{"rendered":"Secure Donation"},"content":{"rendered":"<div class=\"tddc-wrap\" dir=\"ltr\" style=\"width:100%;display:flex;justify-content:center;align-items:flex-start;padding:24px 16px;box-sizing:border-box;\">\n            <div class=\"tddc-card\" style=\"width:100%;max-width:620px;margin:0 auto;background:#fff;border:1px solid #e5e5e5;border-radius:16px;box-shadow:0 8px 24px rgba(0,0,0,0.06);padding:24px;box-sizing:border-box;\">\n                <div style=\"margin-bottom:18px;\">\n                    <h2 style=\"margin:0;font-size:28px;line-height:1.2;text-align:center;width:100%;\">Secure Donation<\/h2>\n                <\/div>\n\n                <form id=\"tddc_form_d424769e-1556-4c8a-a182-fa1dc5f4ebaf\" class=\"tddc-form\" novalidate action=\"\">\n                    <div style=\"display:grid;gap:14px;\">\n                        <div>\n                            <label style=\"display:block;margin-bottom:6px;font-weight:600;text-align:left;\">Donation Type<\/label>\n                            <input type=\"text\" value=\"Donation\" readonly style=\"width:100%;padding:12px;border:1px solid #d0d0d0;border-radius:10px;text-align:left;box-sizing:border-box;\">\n                        <\/div>\n\n                        <div>\n                            <label style=\"display:block;margin-bottom:6px;font-weight:600;text-align:left;\">Amount (OMR)<\/label>\n                            <input type=\"number\" name=\"amount_omr\" min=\"0.100\" step=\"0.001\" inputmode=\"decimal\" placeholder=\"1.000\" required style=\"width:100%;padding:12px;border:1px solid #d0d0d0;border-radius:10px;text-align:left;box-sizing:border-box;\">\n                        <\/div>\n\n                        <div>\n                            <label style=\"display:block;margin-bottom:6px;font-weight:600;text-align:left;\">Full Name<\/label>\n                            <input type=\"text\" name=\"donor_name\" required style=\"width:100%;padding:12px;border:1px solid #d0d0d0;border-radius:10px;text-align:left;box-sizing:border-box;\">\n                        <\/div>\n\n                        <div>\n                            <label style=\"display:block;margin-bottom:6px;font-weight:600;text-align:left;\">Email <span style=\"font-weight:400;font-size:13px;color:#777;\">optional<\/span><\/label>\n                            <input type=\"email\" name=\"donor_email\" style=\"width:100%;padding:12px;border:1px solid #d0d0d0;border-radius:10px;text-align:left;box-sizing:border-box;\" dir=\"ltr\">\n                        <\/div>\n\n                        <div>\n                            <label style=\"display:block;margin-bottom:6px;font-weight:600;text-align:left;\">Phone Number<\/label>\n                            <input type=\"tel\" name=\"donor_phone\" placeholder=\"968XXXXXXXX\" required style=\"width:100%;padding:12px;border:1px solid #d0d0d0;border-radius:10px;text-align:left;box-sizing:border-box;\" dir=\"ltr\">\n                        <\/div>\n\n                        <input type=\"hidden\" name=\"title\" value=\"Donation\">\n                        <input type=\"hidden\" name=\"lang\" value=\"en\">\n\n                        <button type=\"submit\" style=\"padding:14px 16px;cursor:pointer;border:none;border-radius:12px;background:#4b6f08;color:#fff;font-weight:700;font-size:16px;\">\n                            Continue to secure payment                        <\/button>\n\n                        <div id=\"tddc_msg_6f96b044-d9b2-4ae9-9b1a-6aac9a2f2cad\" style=\"display:none;padding:12px;border:1px solid #ddd;border-radius:10px;text-align:left;\"><\/div>\n                    <\/div>\n                <input type=\"hidden\" name=\"trp-form-language\" value=\"en\"\/><\/form>\n            <\/div>\n        <\/div>\n\n        <script>\n        (function() {\n            const form = document.getElementById(\"tddc_form_d424769e-1556-4c8a-a182-fa1dc5f4ebaf\");\n            const messageBox = document.getElementById(\"tddc_msg_6f96b044-d9b2-4ae9-9b1a-6aac9a2f2cad\");\n            if (!form) return;\n\n            const submitBtn = form.querySelector('button[type=\"submit\"]');\n            const buttonDefaultText = \"Continue to secure payment\";\n            const redirectingText = \"Redirecting...\";\n            const preparingText = \"Preparing secure checkout...\";\n\n            function showMessage(text) {\n                if (!messageBox) return;\n                messageBox.style.display = '';\n                messageBox.textContent = text;\n            }\n\n            form.addEventListener('submit', async function(e) {\n                e.preventDefault();\n\n                const formData = new FormData(form);\n                formData.append('action', 'tddc_create_session');\n                formData.append('nonce', \"2a9f7b53cb\");\n\n                if (submitBtn) {\n                    submitBtn.disabled = true;\n                    submitBtn.textContent = redirectingText;\n                }\n                showMessage(preparingText);\n\n                try {\n                    const res = await fetch(\"https:\\\/\\\/zseeb.om\\\/wp-admin\\\/admin-ajax.php\", {\n                        method: 'POST',\n                        body: formData,\n                        credentials: 'same-origin'\n                    });\n\n                    const data = await res.json();\n                    if (!data || !data.success || !data.data || !data.data.checkout_url) {\n                        throw new Error(data && data.data && data.data.message ? data.data.message : 'Could not start checkout.');\n                    }\n\n                    window.location.href = data.data.checkout_url;\n                } catch (err) {\n                    showMessage(err.message || 'Could not start checkout.');\n                    if (submitBtn) {\n                        submitBtn.disabled = false;\n                        submitBtn.textContent = buttonDefaultText;\n                    }\n                }\n            });\n        })();\n        <\/script>\n        \n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"footnotes":""},"class_list":["post-24863","page","type-page","status-publish","hentry","entry"],"acf":[],"_links":{"self":[{"href":"https:\/\/zseeb.om\/en\/wp-json\/wp\/v2\/pages\/24863","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zseeb.om\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/zseeb.om\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/zseeb.om\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zseeb.om\/en\/wp-json\/wp\/v2\/comments?post=24863"}],"version-history":[{"count":0,"href":"https:\/\/zseeb.om\/en\/wp-json\/wp\/v2\/pages\/24863\/revisions"}],"wp:attachment":[{"href":"https:\/\/zseeb.om\/en\/wp-json\/wp\/v2\/media?parent=24863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}