{"id":15,"date":"2012-10-15T21:31:59","date_gmt":"2012-10-15T21:31:59","guid":{"rendered":"http:\/\/streetevangelization.com\/hiromoto\/?page_id=15"},"modified":"2020-08-11T11:34:40","modified_gmt":"2020-08-11T11:34:40","slug":"donate","status":"publish","type":"page","link":"https:\/\/streetevangelization.com\/hiromoto\/donate\/","title":{"rendered":"Donate"},"content":{"rendered":"<p>Thank you for your interest in supporting our work! <span> St. Paul Street Evangelization needs your help to continue our mission of taking the Catholic Faith to the streets in this country and throughout the world. The first thing that we need is your prayers. Secondarily, we need financial support to keep our operations going.<\/span><\/p>\n<p>You may use the form below to make a donation to our Urban Missionary, Christina Hiromoto.<\/p>\n<div id=\"buttons\">\n<p>To donate directly to Christina Hiromoto, click here: <button id=\"local\">Donate directly to Christina Hiromoto<\/button><\/p>\n<p>To donate to our national campaign, click here: <a href=\"https:\/\/streetevangelization.com\/donate\/\"><button id=\"national\">Donate to our national campaign<\/button><\/a><\/p>\n<\/div>\n<div id=\"localForm\" style=\"display: none;\"><script src=\"https:\/\/js.stripe.com\/v3\/\"><\/script>\r\n<div style=\"text-align:left; margin:auto; width:60%; min-width:240px; font-size:16;\">\r\n\t\r\n\t<form method=\"post\" id=\"donation-form\">\r\n\t\t<input type=\"hidden\" name=\"speisl_donate_form\" value=\"4\">\r\n\t\t<input type=\"hidden\" name=\"speisl_idemp_key\" value=\"20260416212039453eef7cbcb3b977b90694aae30b4710\">\r\n\t\t<div class=\"donateformsection\">Donation Details<\/div>\r\n\t\t<div class=\"form-row\">\r\n\t\t\t<label for=\"donation-amount\">Donation Amount (in USD)<\/label>\r\n\t\t\t<input id=\"donation-amount\" min=\"1\" name=\"donation-amount\" type=\"number\" class=\"donateforminput\" step=\"1\" required\/><br>\r\n\t\t\t<input type=\"checkbox\" name=\"donation-type\">Make this a monthly recurring donation\r\n\t\t<\/div>\r\n\t\t<div class=\"donateformsection\">Payment Card<\/div>\r\n\t\t<div class=\"form-row\">\r\n\t\t\t<label for=\"card-element\">Credit or debit card<\/label>\r\n\t\t\t<div id=\"card-element\"><!-- A Stripe Element will be inserted here. --><\/div>\r\n\t\t\t<div id=\"card-errors\" role=\"alert\"><!-- Used to display Element errors. --><\/div>\r\n\t\t<\/div>\r\n\t\t<div class=\"donateformsection\">Your Info<\/div>\r\n\t\t<div class=\"form-row\">\r\n\t\t\t<label for=\"donor-firstname\">First Name<\/label>\r\n\t\t\t<input id=\"donor-firstname\" name=\"donor-firstname\" type=\"text\" placeholder=\"First Name\" class=\"donateforminput2\" required\/>\r\n\t\t<\/div>\r\n\t\t<div class=\"form-row\">\r\n\t\t\t<label for=\"donor-lastname\">Last Name<\/label>\r\n\t\t\t<input id=\"donor-lastname\" name=\"donor-lastname\" type=\"text\" placeholder=\"Last Name\" class=\"donateforminput2\" required\/>\r\n\t\t<\/div>\r\n\t\t<div class=\"form-row\">\r\n\t\t\t<label for=\"donor-email\">Email<\/label>\r\n\t\t\t<input id=\"donor-email\" name=\"donor-email\" type=\"email\" placeholder=\"Enter Your Email\" class=\"donateforminput2\" required\/>\r\n\t\t<\/div>\r\n\t\t<div class=\"form-row\">\r\n\t\t\t<label for=\"card-phone\">Phone Number<\/label>\r\n\t\t\t<input id=\"card-phone\" name=\"card-phone\" type=\"text\" placeholder=\"Billing Phone Number\" class=\"donateforminput\" required\/>\r\n\t\t<\/div>\r\n\t\t<div class=\"form-row\">\r\n\t\t\t<label for=\"streetaddress\">Street Address<\/label>\r\n\t\t\t<input id=\"streetaddress\" name=\"streetaddress\" type=\"text\" placeholder=\"Street Address\" class=\"donateforminput\" required\/>\r\n\t\t<\/div>\r\n\t\t<div class=\"form-row\">\r\n\t\t\t<label for=\"city\">City<\/label>\r\n\t\t\t<input id=\"city\" name=\"city\" type=\"text\" placeholder=\"City\" class=\"donateforminput\" required\/>\r\n\t\t<\/div>\r\n\t\t<div class=\"form-row\">\r\n\t\t\t<label for=\"state\">State<\/label>\r\n\t\t\t<input id=\"state\" name=\"state\" type=\"text\" placeholder=\"State\/Province\" class=\"donateforminput\" required\/>\r\n\t\t<\/div>\r\n\t\t<div class=\"form-row\">\r\n\t\t\t<label for=\"zipcode\">Zip Code<\/label>\r\n\t\t\t<input id=\"zipcode\" name=\"zipcode\" type=\"text\" placeholder=\"Zip\/Postal Code\" class=\"donateforminput\" required\/>\r\n\t\t<\/div>\r\n\t\t<div class=\"form-row\">\r\n\t\t\t<label for=\"country\">Country<\/label>\r\n\t\t\t<input id=\"country\" name=\"country\" type=\"text\" placeholder=\"Country\" value=\"United States\" class=\"donateforminput\" required\/>\r\n\t\t<\/div>\r\n\t\t<div id=\"submit-button-div\">\r\n\t\t\t<button id=\"donform-submit\" name=\"subButton\">Donate Now<\/button>\r\n\t\t<\/div>\r\n\t<\/form>\r\n<\/div>\r\n<script>\r\nvar stripe = Stripe('pk_live_bzZXhaDcQPCjwfmSv7Q9JZc1');\r\nvar elements = stripe.elements();\r\nvar stripesub = 1;\r\nvar donorData = {name:\"\", address_line1:\"\", address_city:\"\", address_state:\"\", address_zip:\"\", address_country:\"\"};\r\n\r\nvar formAlreadySub = 0;\r\nfunction formPrevDup() {\r\n\tform.subButton.disabled = true;\r\n\tformAlreadySub = 1;\r\n}\r\nfunction formEnable() {\r\n\tform.subButton.disabled = false;\r\n\tformAlreadySub = 0;\r\n}\r\n\r\n\/\/ Custom styling can be passed to options when creating an Element.\r\nvar style = {\r\nbase: {\r\n\/\/ Add your base input styles here. For example:\r\n\/\/fontSize: '16px',\r\n\/\/color: \"#32325d\",\r\n}\r\n};\r\n\r\n\/\/ Create an instance of the card Element.\r\nvar card = elements.create('card', {style: style});\r\n\r\n\/\/ Add an instance of the card Element into the `card-element` <div>.\r\ncard.mount('#card-element');\r\n\r\ncard.addEventListener('change', function(event) {\r\nvar displayError = document.getElementById('card-errors');\r\nif (event.error) {\r\ndisplayError.textContent = event.error.message;\r\n} else {\r\ndisplayError.textContent = '';\r\n}\r\n});\r\n\r\n\/\/ Create a token or display an error when the form is submitted.\r\nvar form = document.getElementById('donation-form');\r\n\r\nform.addEventListener( 'submit', function(event) {\r\n\r\n\tevent.preventDefault();\r\n\r\n\tif (formAlreadySub) {\r\n\t\treturn;\r\n\t}\r\n\t\r\n\tformPrevDup();\r\n\r\n\tif ( stripesub ) {\r\n\r\n\t\tdonorData.name = document.getElementById('donor-firstname').value + ' ' + document.getElementById('donor-lastname').value;\r\n\t\tdonorData.address_line1 = document.getElementById('streetaddress').value;\r\n\t\tdonorData.address_city = document.getElementById('city').value;\r\n\t\tdonorData.address_state = document.getElementById('state').value;\r\n\t\tdonorData.address_zip = document.getElementById('zipcode').value;\r\n\t\tdonorData.address_country = document.getElementById('country').value;\r\n\r\n\t\tstripe.createToken(card, donorData).then(function(result) {\r\n\r\n\t\t\t if (result.error) {\r\n\t\t\t\t \/\/ Inform the customer that there was an error.\r\n\t\t\t\t var errorElement = document.getElementById('card-errors');\r\n\t\t\t\t errorElement.textContent = result.error.message;\r\n\t\t\t\t formEnable();\r\n\t\t\t} else {\r\n\t\t\t\t \/\/ Send the token to your server.\r\n\t\t\t\t stripeTokenHandler(result.token);\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\telse {\r\n\t\t\r\n\t\tform.submit();\r\n\r\n\t}\r\n});\r\n\r\nfunction stripeTokenHandler(token) {\r\n\t\/\/ Insert the token ID into the form so it gets submitted to the server\r\n\tvar form = document.getElementById('donation-form');\r\n\tvar hiddenInput = document.createElement('input');\r\n\thiddenInput.setAttribute('type', 'hidden');\r\n\thiddenInput.setAttribute('name', 'stripeToken');\r\n\thiddenInput.setAttribute('value', token.id);\r\n\tform.appendChild(hiddenInput);\r\n\r\n\t\/\/ Submit the form\r\n\tform.submit();\r\n}\r\n<\/script>Thank you for partnering with Christina Hiromoto through your tax deductible donation and helping to save souls. If you would like to make an additional donation to our national campaign, <a href=\"https:\/\/streetevangelization.com\/donate\/\" target=\"_blank\" rel=\"noopener noreferrer\">click here<\/a>.<\/p>\n<\/div>\n<p><script>\ndocument.getElementById('local').onclick = function() {\n    document.getElementById('localForm').style.display = 'block';\n    document.getElementById(\"buttons\").style.display = 'none';\n}\n<\/script><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Thank you for your interest in supporting our work! St. Paul Street Evangelization needs your help to continue our mission of taking the Catholic Faith to the streets in this country and throughout the world. The first thing that we need is your prayers. Secondarily, we need financial support to keep our operations going. You [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"off","_et_pb_old_content":"","_et_gb_content_width":"","jetpack_post_was_ever_published":false,"footnotes":""},"class_list":["post-15","page","type-page","status-publish","hentry"],"jetpack_shortlink":"https:\/\/wp.me\/PaZVtd-f","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/streetevangelization.com\/hiromoto\/wp-json\/wp\/v2\/pages\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/streetevangelization.com\/hiromoto\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/streetevangelization.com\/hiromoto\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/streetevangelization.com\/hiromoto\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/streetevangelization.com\/hiromoto\/wp-json\/wp\/v2\/comments?post=15"}],"version-history":[{"count":14,"href":"https:\/\/streetevangelization.com\/hiromoto\/wp-json\/wp\/v2\/pages\/15\/revisions"}],"predecessor-version":[{"id":1018,"href":"https:\/\/streetevangelization.com\/hiromoto\/wp-json\/wp\/v2\/pages\/15\/revisions\/1018"}],"wp:attachment":[{"href":"https:\/\/streetevangelization.com\/hiromoto\/wp-json\/wp\/v2\/media?parent=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}