Inspiration

During disasters and public emergencies, people often need help immediately—but relief systems face two difficult questions:

  1. Is the request genuine?

  2. Did the donated money actually reach the intended solution?

Traditional crowdfunding can move money quickly, but it does not always provide enough visibility into eligibility, fulfilment, or the final destination of funds.

We created RescueMesh to connect citizens, NGOs, Fair Price Shops (FPS), pharmacies, delivery partners, and donors through one transparent recovery workflow. Our core principle is simple: use public entitlements first, and pay only for the verified gap. For example, if a family needs rice and medicine, available entitlement-supported food can be fulfilled through a local Fair Price Shop, while PayPal funds only the unmet medicine or delivery cost.


What it does

RescueMesh manages the complete disaster-relief journey from request to verified payout:

Citizen request
      ↓
Consent and eligibility check
      ↓
AI-assisted allocation
      ↓
Entitlement/FPS fulfilment
      ↓
PayPal authorization
      ↓
NGO fulfilment verification
      ↓
PayPal capture
      ↓
Transparent ledger and donor notification

Multi-Stakeholder Dashboards

  • Citizens: Request assistance easily without exposing unnecessary sensitive identity data.
  • NGOs: Review AI recommendations, verify fulfilment, and coordinate recovery missions.
  • Fair Price Shops & Merchants: Publish available local inventory and capacity.
  • Donors: Track exactly what their contribution funded and verify when funds are released.

Fulfilment-Gated Financial Trust (PayPal)

Instead of capturing donor funds immediately upon checkout, RescueMesh uses PayPal's AUTHORIZE and delayed CAPTURE flow:

  1. The donor authorizes the contribution.
  2. The NGO verifies that local fulfilment was actually completed.
  3. RescueMesh calls PayPal’s capture endpoint.
  4. Only a completed PayPal capture is recorded as successful, logging the destination provider, amount, capture ID, timestamp, and donor notification.

How we built it

AI & Decision-Support Layer

We used an OpenAI-oriented agentic workflow to support mission triage and allocation. The AI evaluates requested items, urgency, location, local merchant capacity, entitlement-supported supplies, unmatched needs requiring human review, and potential duplicate or suspicious requests. Crucially, the AI does not independently approve or release money—it acts strictly as a decision-support layer for human NGO reviewers while avoiding the collection of unnecessary identity data (such as Aadhaar numbers, ration-card numbers, OTPs, or biometrics).

Payment Infrastructure (PayPal)

Using the PayPal Sandbox Orders API v2, we built a server-authoritative financial layer featuring:

  • OAuth authentication and token caching
  • Server-side order creation and AUTHORIZE payment flow
  • Sandbox Personal buyer and Business recipient account routing
  • Fulfilment-gated capture, status reconciliation, and audit records
  • A Postman collection to demonstrate and validate the full API lifecycle from mission creation through capture

Tech Stack & Data Model

  • Frontend: React, Vite, PayPal JavaScript SDK v6, responsive PayPal-inspired UI (with light, dark, and system themes), and real-time updates via WebSockets.
  • Backend: Python, FastAPI, SQLite, REST APIs, WebSocket event streams, transaction ledger, notification records, and an optional PayPal MCP bridge.
  • Core Data Model: Stores recovery missions, merchant/FPS capacity, allocations, PayPal payment states, ledger entries, notifications, and audit events.

Challenges we ran into

The most difficult part was not creating a PayPal order—it was accurately modelling and reconciling the complete payment lifecycle. We had to cleanly separate and handle states across:

  • Order created → Buyer approved → Payment authorized → Fulfilment verified → Payment captured (as well as pending or failed captures).

We also navigated several PayPal Sandbox-specific technical hurdles:

  • Configuring Buyer, Business, and Platform Partner account routing
  • Handling currency support, transaction fees, partner withdrawals, and Sandbox compliance restrictions
  • Resolving stale frontend/backend credentials and delayed balance displays in the Sandbox dashboard

These challenges reinforced that a reliable payment integration requires strict state reconciliation and must never mark funds as captured until PayPal confirms completion.


Accomplishments that we're proud of

  • Trust-First Architecture: Built a privacy-respecting relief workflow that verifies need without collecting unnecessary personal identity numbers or biometrics.
  • Escrow-Like Accountability: Successfully implemented fulfilment-gated PayPal capture so donor money is only released after an NGO confirms delivery.
  • Bridging Public & Private Aid: Designed an allocation engine that prioritizes existing public entitlements (like Fair Price Shops) before tapping into donor funds.
  • End-to-End Observability: Delivered real-time WebSocket updates across four distinct user roles alongside a complete audit ledger and Postman validation suite.

What we learned

  • How to design a multi-sided recovery platform tailored to citizens, NGOs, merchants, and donors.
  • How to build a server-authoritative PayPal integration using authorization and delayed capture safely.
  • How to separate public entitlement fulfilment from monetary gaps.
  • How to deploy AI responsibly as a human-in-the-loop decision-support tool rather than blindly automating sensitive financial approvals.
  • How to manage sandbox account configurations, currency rules, audit trails, and secret management across frontend and backend codebases.

What's next for RescueMesh

In a production deployment, we aim to expand RescueMesh into a resilient, large-scale disaster response network by:

  • Integrating authorized government entitlement interfaces and live merchant inventory feeds for automated real-time capacity matching.
  • Incorporating verified municipal and meteorological incident feeds to strengthen AI anomaly and duplicate detection.
  • Scaling the database and ledger architecture to support high-concurrency regional emergencies and multi-currency cross-border relief campaigns.

RescueMesh: public support first, PayPal for the gap, transparency throughout.

Built With

Share this project:

Updates

Submission history