let attempts = 0; const maxAttempts = 50; console.log("Begin TryPushFunc"); setTimeout(function(){ function tryPushOrder() { attempts++; console.log("Attempting to fetch Zeffy payment data, attempt #" + attempts); fetch("/wp-json/zeffy/v1/latest-payment") .then((payment) => { console.log("Raw payment response:", payment); if (!payment) return; console.log("Fetched payment data:", payment); if (payment.error || !payment.order_id) { if (attempts < maxAttempts) { setTimeout(tryPushOrder, 1000); } else { console.error( "Zeffy payment data never arrived after " + maxAttempts + " attempts" ); } return; } function uuidToInt(uuid) { let hash = 0; const str = uuid.replace(/-/g, ""); // remove hyphens for (let i = 0; i < str.length; i++) { hash = (Math.imul(31, hash) + str.charCodeAt(i)) | 0; } return Math.abs(hash); } const orderId = uuidToInt(payment.order_id); console.log("Converted order ID:", orderId); try { _upf.push([ "order", { order_id: orderId, order_name: "#" + payment.order_id, amount: payment.amount, currency: payment.currency, items: [ { name: payment.description, amount: payment.amount, currency: payment.currency, }, ], customer: { email: payment.email, first_name: payment.first_name, last_name: payment.last_name, }, }, ]); } catch (error) { console.error("Error pushing order:", error); } }) .catch((err) => { console.error("Fetch error:", err); if (attempts < maxAttempts) setTimeout(tryPushOrder, 3000); }); window.addEventListener("load", tryPushOrder); } }, 7000);

Together, we can open the door to hope.

At The Giving Arms, real change happens when compassionate people and organizations come together. Whether you’re an individual ready to give, a business looking to make an impact, or a service provider eager to support families in need, there’s a place for you in our mission.

By joining us, you help provide free, one-year housing to individuals and families facing hardship—giving them the stability and support they need to rebuild their lives.

Complete the form below, and a member of our team will reach out to discuss how you can get involved.

Join Our Mission

Full Name
How Would You Like to Contribute? (Select all that apply)
Please share a bit about how you or your organization would like to help:
Preferred Contact Method

Every contribution—whether financial or in-kind—directly impacts a family’s ability to find stability and hope. Financial supporters help us acquire and maintain safe, dignified homes. Service providers expand the network of care that surrounds each family we serve. Community partners amplify our reach and strengthen the movement for housing equity. Together, we’re not just building houses—we’re building futures.

Questions? Reach out to our partnerships team: Phone: (555) 123-4567 Email: partners@thegivingarms.org.