{"id":709,"date":"2016-01-21T13:20:04","date_gmt":"2016-01-21T13:20:04","guid":{"rendered":"http:\/\/localhost\/VNC\/?page_id=709"},"modified":"2025-10-16T11:10:51","modified_gmt":"2025-10-16T11:10:51","slug":"donate-us","status":"publish","type":"page","link":"https:\/\/www.vidyaandchild.org\/index.php\/donate-us\/","title":{"rendered":"Donate"},"content":{"rendered":"<div id=\"pl-709\"  class=\"panel-layout\" ><div id=\"pg-709-0\"  class=\"panel-grid panel-no-style\" ><div id=\"pgc-709-0-0\"  class=\"panel-grid-cell\" ><div id=\"panel-709-0-0-0\" class=\"widget_text so-panel widget widget_custom_html panel-first-child\" data-index=\"0\" ><div class=\"textwidget custom-html-widget\"><h1 style=\"text-align: center;\"><span style=\"color: #0000ff;\"><strong>Donate<\/strong><\/span><\/h1>\n<h2 style=\"font-family: 'EB Garamond', serif;\">\n\tFor Donors holding an Indian Passport (80 G provided for tax benefit)\n<\/h2>\n<h3 style=\"font-family: 'EB Garamond', serif; font-size: 16px;\">\n\tIf not applicable, find other options below.\n<\/h3>\n<form id=\"donation-form\">\n  <input type=\"text\" id=\"donor-name\" placeholder=\"Full Name\" required><br>\n  <input type=\"email\" id=\"donor-email\" placeholder=\"Email\" required><br>\n  <input type=\"tel\" id=\"donor-phone\" placeholder=\"Phone Number (+CountryCodeNumber)\" required><br>\n  <input type=\"text\" id=\"donor-pan\" placeholder=\"PAN Number\" required><br>\n<input type=\"text\" id=\"donation-amount\" placeholder=\"Amount (\u20b9)\" inputmode=\"numeric\" pattern=\"[0-9]*\" required><br>\n  <button type=\"submit\" id=\"submit-btn\">Donate Now<\/button>\n<\/form>\n\n<script src=\"https:\/\/checkout.razorpay.com\/v1\/checkout.js\"><\/script>\n<script>\ndocument.getElementById('donation-form').onsubmit = function(e) {\n  e.preventDefault();\n\n  const name = document.getElementById('donor-name').value.trim();\n  const email = document.getElementById('donor-email').value.trim();\n  const phone = document.getElementById('donor-phone').value.trim();\n  const pan = document.getElementById('donor-pan').value.trim().toUpperCase();\n  const amount = parseFloat(document.getElementById('donation-amount').value.trim());\n  const submitBtn = document.getElementById('submit-btn');\n\n  \/\/ Full name validation: at least two words\n  if (!\/^[A-Za-z ]{3,}$\/.test(name) || name.split(\" \").length < 2) {\n    alert(\"Please enter your full name (first and last).\");\n    return;\n  }\n\n  \/\/ Email validation\n  const emailRegex = \/^[^\\s@]+@[^\\s@]+\\.[^\\s@]{2,}$\/;\n  if (!emailRegex.test(email)) {\n    alert(\"Please enter a valid email address.\");\n    return;\n  }\n\n  \/\/ Phone validation\n  const phoneRegex = \/^\\+\\d{10,15}$\/;\n  if (!phoneRegex.test(phone)) {\n    alert(\"Enter a valid phone number with country code (e.g. +12345678901).\");\n    return;\n  }\n\n  \/\/ PAN validation\n  const panRegex = \/^[A-Z]{5}[0-9]{4}[A-Z]{1}$\/;\n  if (!panRegex.test(pan)) {\n    alert(\"Invalid PAN number.\");\n    return;\n  }\n\n  if (!amount || amount <= 0) {\n    alert(\"Please enter a valid donation amount.\");\n    return;\n  }\n\n  submitBtn.disabled = true;\n\tsubmitBtn.textContent = \"Processing...\";\n  const live_key = \"rzp_live_RU1SyrqlRNWENF\";\n\n  const formData = new FormData();\n  formData.append('action', 'create_order');     \/\/ This calls your PHP function\n  formData.append('nonce', donation_vars.nonce); \/\/ Security token\n  formData.append('amount', amount);\n\tformData.append('name', name);\n\tformData.append('email', email);\n\tformData.append('phone', phone);\n\tformData.append('pan', pan);\n\n\n  fetch(donation_vars.ajax_url, {\n    method: 'POST',\n    body: formData\n  })\n  .then(res => res.json())\n  .then(data => {\n    \/\/ WordPress AJAX response has a 'success' property\n    if (!data.success || !data.data.order_id) {\n      alert(\"Failed to create order: \" + (data.data.message || \"Please try again.\"));\n      submitBtn.disabled = false;\n      submitBtn.textContent = \"Donate Now\";\n      return;\n    }\n\n    const options = {\n      key: live_key,\n      order_id: data.data.order_id,\n\t\t\t\"payment_capture\": true,\n      amount: (amount * 100).toFixed(0),\n      currency: \"INR\",\n      name: \"Vidya and Child\",\n      description: \"Donation\",\n      prefill: { name, email, contact: phone },\n      notes: {\n        \"PAN\": pan,\n        \"Donor Name\": name,\n        \"Email\": email,\n        \"Phone\": phone\n      },\n      handler: function (response) {\n        \/\/ Create form data to send to your new verification function\n        const verifyData = new FormData();\n        verifyData.append('action', 'verify_signature');\n        verifyData.append('nonce', donation_vars.verify_nonce); \/\/ Use the new nonce\n        verifyData.append('razorpay_payment_id', response.razorpay_payment_id);\n        verifyData.append('razorpay_order_id', response.razorpay_order_id);\n        verifyData.append('razorpay_signature', response.razorpay_signature);\n\n        \/\/ Send the payment details to your server for verification\n        fetch(donation_vars.ajax_url, {\n            method: 'POST',\n            body: verifyData\n        })\n        .then(res => res.json())\n        .then(verificationResult => {\n            if (verificationResult.success) {\n                \/\/ SUCCESS! The payment is now verified and secure.\n                alert(\"Thank you for your support! Your payment has been successfully verified.\");\n                window.location.reload(true);\n            } else {\n                \/\/ FAILURE! The signature was invalid.\n                alert(\"Payment verification failed. Please contact support.\");\n                submitBtn.disabled = false;\n                submitBtn.textContent = \"Donate Now\";\n            }\n        })\n        .catch(err => {\n            console.error(\"Verification request failed:\", err);\n            alert(\"An error occurred while verifying the payment. Please contact support.\");\n            submitBtn.disabled = false;\n            submitBtn.textContent = \"Donate Now\";\n        });\n    },\n      theme: { color: \"#3399cc\" }\n    };\n\n    const rzp = new Razorpay(options);\n    rzp.open();\n\n    rzp.on('payment.failed', function () {\n      submitBtn.disabled = false;\n    });\n  })\n  .catch(err => {\n    console.error(err);\n    alert(\"There was an issue creating the payment order. Please try again.\");\n    submitBtn.disabled = false;\n  });\n};\n<\/script>\n\n<\/div><\/div><div id=\"panel-709-0-0-1\" class=\"so-panel widget widget_sow-image\" data-index=\"1\" ><div\n\t\t\t\n\t\t\tclass=\"so-widget-sow-image so-widget-sow-image-default-a258e6bfa2d8-709\"\n\t\t\t\n\t\t>\n<div class=\"sow-image-container\">\n\t\t<img \n\tsrc=\"https:\/\/www.vidyaandchild.org\/wp-content\/uploads\/2016\/01\/IMG_20160211_115048-1580x480.jpg\" width=\"1580\" height=\"480\" sizes=\"(max-width: 1580px) 100vw, 1580px\" alt=\"\" \t\tclass=\"so-widget-image\"\/>\n\t<\/div>\n\n<\/div><\/div><div id=\"panel-709-0-0-2\" class=\"so-panel widget widget_sow-editor panel-last-child\" data-index=\"2\" ><div class=\"panel-widget-style panel-widget-style-for-709-0-0-2\" ><div\n\t\t\t\n\t\t\tclass=\"so-widget-sow-editor so-widget-sow-editor-base\"\n\t\t\t\n\t\t>\n<div class=\"siteorigin-widget-tinymce textwidget\">\n\t<h2 style=\"text-align: center;\"><span style=\"color: #ff0000;\"><b><span style=\"color: #000000;\">......As long as there\u2019s a Dream, there is Hope.<\/span><\/b><\/span><\/h2>\n<p><span style=\"color: #3366ff;\"><strong>Vidya &amp; Child has helped over 600 children to pursue careers in 21 diverse fields. Experience the joy of giving.<\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #3366ff;\"><strong><em><u>Donors not holding Indian Passport &amp; not requiring Tax Benefit\u00a0<\/u>\u00a0:<\/em><\/strong><\/span><\/p>\n<p><strong><span style=\"color: #3366ff;\">Through wire transfer to our FCRA account as below:<\/span><\/strong><\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li data-start=\"49\" data-end=\"84\">\n<p data-start=\"51\" data-end=\"84\"><span style=\"color: #3366ff;\"><em>Account Number: 40065134022<\/em><\/span><\/p>\n<\/li>\n<li data-start=\"85\" data-end=\"144\">\n<p data-start=\"87\" data-end=\"144\"><span style=\"color: #3366ff;\"><em>Name of Account: Jayaprakash Narayan Memorial Trust<\/em><\/span><\/p>\n<\/li>\n<li data-start=\"145\" data-end=\"175\" data-is-last-node=\"\">\n<p data-start=\"147\" data-end=\"175\" data-is-last-node=\"\"><span style=\"color: #3366ff;\"><em>IFSC Code: SBIN0000691<\/em><\/span><\/p>\n<\/li>\n<li data-start=\"145\" data-end=\"175\" data-is-last-node=\"\"><span style=\"color: #3366ff;\"><em>SWIFT Code: SBININBB104<\/em><\/span><\/li>\n<li data-start=\"145\" data-end=\"175\" data-is-last-node=\"\">\n<p style=\"font-weight: 400;\"><span style=\"color: #3366ff;\"><em>Branch Address: FCRA Cell, 4th Floor, New Delhi Main Branch, 11 Sansad Marg, New Delhi-110001<\/em><\/span><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><span style=\"color: #3366ff;\"><strong><em><u>US donors requiring Tax Benefit <\/u>\u00a0:<\/em><\/strong><\/span><\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li data-start=\"75\" data-end=\"254\"><em><span style=\"color: #3366ff;\">Donate to Vidya &amp; Child via ICA:<\/span><\/em><br data-start=\"111\" data-end=\"114\" \/><em><span style=\"color: #3366ff;\"><a class=\"decorated-link\" style=\"color: #3366ff;\" href=\"https:\/\/www.icaonline.org\/action\/donate.php?org=Vidya%20%26%20Child\" target=\"_new\" rel=\"noopener\" data-start=\"114\" data-end=\"252\">https:\/\/www.icaonline.org\/action\/donate.php?org=Vidya%20%26%20Child<\/a><\/span><\/em><\/li>\n<li data-start=\"277\" data-end=\"588\"><em><span style=\"color: #3366ff;\">Indians for Collective Action (ICA), a San Francisco Bay Area nonprofit, supports sustainable development in India by partnering with NGOs and individuals. <\/span><\/em><em><span style=\"color: #3366ff;\">ICA is a registered 501(c)(3) organization (EIN: 23-7027461). Donations are tax-deductible in the US. <\/span><\/em><em><span style=\"color: #3366ff;\">Vidya &amp; Child is an ICA-listed project.<\/span><\/em><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/div>\n<\/div><\/div><\/div><\/div><\/div><div id=\"pg-709-1\"  class=\"panel-grid panel-no-style\" ><div id=\"pgc-709-1-0\"  class=\"panel-grid-cell panel-grid-cell-empty\" ><\/div><div id=\"pgc-709-1-1\"  class=\"panel-grid-cell panel-grid-cell-mobile-last\" ><div id=\"panel-709-1-1-0\" class=\"so-panel widget widget_sow-editor panel-first-child panel-last-child\" data-index=\"3\" ><div\n\t\t\t\n\t\t\tclass=\"so-widget-sow-editor so-widget-sow-editor-base\"\n\t\t\t\n\t\t>\n<div class=\"siteorigin-widget-tinymce textwidget\">\n\t<p><!--\n\n\n<div class=\"pm-button\"><a href=\"https:\/\/www.payumoney.com\/paybypayumoney\/#\/2D1C0128D3D8B649998315797F34882D\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/www.payumoney.com\/\/media\/images\/payby_payumoney\/buttons\/212.png\" align=\"middle\" \/><\/a>\n--><\/div>\n<\/div>\n<\/div><\/div><\/div><div id=\"pgc-709-1-2\"  class=\"panel-grid-cell panel-grid-cell-empty\" ><\/div><\/div><div id=\"pg-709-2\"  class=\"panel-grid panel-no-style\" ><div id=\"pgc-709-2-0\"  class=\"panel-grid-cell\" ><div id=\"panel-709-2-0-0\" class=\"so-panel widget widget_sow-editor panel-first-child panel-last-child\" data-index=\"4\" ><div\n\t\t\t\n\t\t\tclass=\"so-widget-sow-editor so-widget-sow-editor-base\"\n\t\t\t\n\t\t>\n<div class=\"siteorigin-widget-tinymce textwidget\">\n\t<p>For more information and in-kind donation options, <a href=\"https:\/\/www.vidyaandchild.org\/\/index.php\/contact-us\/\">Contact\u00a0us<\/a>.<\/p>\n<\/div>\n<\/div><\/div><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>&#8230;&#8230;As long as there\u2019s a Dream, there is Hope. Vidya &amp; Child has helped over 600 children to pursue careers in 21 diverse fields. Experience the joy of giving. &nbsp; Donors not holding Indian Passport &amp; not requiring Tax Benefit\u00a0\u00a0: Through wire transfer to our FCRA account as below: Account Number: 40065134022 Name of Account: <a class=\"moretag\" href=\"https:\/\/www.vidyaandchild.org\/index.php\/donate-us\/\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"full-width-page.php","meta":{"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","footnotes":""},"class_list":["post-709","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.vidyaandchild.org\/index.php\/wp-json\/wp\/v2\/pages\/709","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vidyaandchild.org\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.vidyaandchild.org\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.vidyaandchild.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vidyaandchild.org\/index.php\/wp-json\/wp\/v2\/comments?post=709"}],"version-history":[{"count":79,"href":"https:\/\/www.vidyaandchild.org\/index.php\/wp-json\/wp\/v2\/pages\/709\/revisions"}],"predecessor-version":[{"id":1986,"href":"https:\/\/www.vidyaandchild.org\/index.php\/wp-json\/wp\/v2\/pages\/709\/revisions\/1986"}],"wp:attachment":[{"href":"https:\/\/www.vidyaandchild.org\/index.php\/wp-json\/wp\/v2\/media?parent=709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}