INSPIRATION

Across Sub-Saharan Africa, foreign remittances are not a luxury; they are an economic lifeline that channels over $54 Billion USD annually into the continent. In key pilot markets, remittances power 27.5 percent of national GDP in The Gambia, 23.2 percent in Liberia, and 21.0 percent in Lesotho. Over 90 percent of these funds are sent with a specific intent: paying school tuition, buying family groceries, covering emergency hospital bills, or funding housing rent. Yet, traditional cross-border remittance rails suffer from two fatal structural flaws:

  1. The Payout Rail Gap: Millions of African citizens cannot receive money directly into local accounts because PayPal lacks direct withdrawal rails into local African mobile money wallets or commercial bank accounts.
  2. The Purpose and Trust Gap: Diaspora senders transfer billions via PayPal for critical family necessities, but traditional wire operators deliver unverified cash with zero accountability, creating constant anxiety about funds diversion.

We built Ezri Africa — now fully deployed and functioning live in MVP at www.ezri-africa.com — as a PayPal AI Hackathon platform to bridge PayPal foreign collection directly to local African mobile money rails while turning remittances into purpose-locked AI escrow holds: funds that remain protected in PayPal escrow until the receiver provides verified bill photo proof.

WHAT IT DOES

Ezri Africa — Proof Before Payout. Chat, lock, prove. Live production MVP at www.ezri-africa.com.

AI-Native PayPal Remittance Copilot: Senders type or speak plain-text prompts, for example, "Send $60 to mom for school tuition". Core multi-model AI using OpenRouter DeepSeek V4 extracts amounts, identifies recipients, calculates transparent fees, and locks the transaction to a purpose category such as School, Food, Health, Rent, Emergency, or General.

PayPal Sandbox Escrow Protection: Funds are captured into PayPal sandbox escrow via PayPal Orders v2 and held securely in a HELD state. Senders are charged the transfer amount plus a flat 2 percent Ezri platform fee ($1.20 on a $60 transfer) with zero hidden exchange rate markup.

Pan-African Local Disburse across 15 Nations: Receivers open a zero-login claim link, select their destination country, pick preferred payout currency such as Liberian Dollars or US Dollars, and choose local Mobile Money like MTN MoMo, Orange Money, M-Pesa, Wave, OPay, PalmPay, or Commercial Banks like Ecobank, UBA, and GTBank. Local exchange rates are guaranteed in real time (for example, 1 USD = 192.00 LRD).

Vision AI Receipt Inspection: Receivers upload an invoice or bill photo. OpenRouter Qwen 2.5 VL Vision inspects the document for legibility, purpose keyword match, and amount windows. PASS disburses funds automatically into local mobile money or bank accounts. FAIL generates an AI reason statement, allowing one retry, a 4-digit PIN sender override (1234), or an automatic full refund via PayPal Payments Refunds API.

Ezri Virtual Remittance Cards: Generates custom Visa and Mastercard virtual cards (up to 3 per account) with instant top-up from PayPal escrow, freeze, and delete controls, allowing senders and receivers to pay school tuition, hospital invoices, and online merchants directly.

Mobile Gallery PNG Slip Generator: One-tap exports high-resolution, branded PNG receipt vouchers with Ezri logo and security watermarks directly to mobile phone camera rolls.

Inclusive Accessibility Suite: Features Web Speech API voice input and approved text-to-speech voice read-back, Big Text dynamic scaling, High Contrast mode, Simple Language mode, and an IndexedDB offline outbox.

HOW WE BUILT IT

We engineered Ezri Africa as a live production platform deployed on Render cloud infrastructure using a Fortune 500 decoupled, high-availability microservices architecture:

Frontend Web Application (www.ezri-africa.com): Next.js 16.4 PWA deployed on Render using App Router, React 19, Tailwind CSS 4.3, and Lucide Icons with Light Mode default, system theme auto-detection, fluid responsive typography, HTML5 Canvas receipt rendering, and AG Grid 32 financial tables.

API Direction Gateway Microservice: Fast API reverse-proxy gateway deployed on Render handling CORS whitelisting for www.ezri-africa.com, authentication token validation, rate-limiting, and directional request routing to underlying microservices.

AI Engine Microservice: OpenRouter API client driving DeepSeek V4 Flash for natural language intent parsing and Qwen 2.5 VL Vision for Computer Vision receipt photo inspection.

Database and Persistence Microservice: Production Prisma Postgres ORM connected to cloud PostgreSQL for real production persistence, paired with Upstash Redis REST caching for exchange rates and session acceleration, and automatic SQLite fallback for offline backup.

PayPal Payments and Infrastructure: Integrated PayPal Orders v2 create and capture plus PayPal Payments Refunds API sandbox endpoints, Cloudflare R2 S3 object storage for bill photo proof files, Zapier Catch Hook event webhooks (firing transfer.created, transfer.held, proof.passed, proof.failed, transfer.released, transfer.refunded), and a Model Context Protocol (MCP) tool server for agentic commerce.

CHALLENGES WE RAN INTO

  1. The Proof Chicken-and-Egg Dilemma: Senders want proof before releasing funds, but receivers often need money to purchase supplies. We solved this by enforcing bill or quote first verification (uploading an official tuition invoice, clinic quote, or market bill) rather than requiring post-purchase receipts.
  2. Intermittent Mobile Connectivity in Remote Regions: African receivers frequently experience network drops. We built an offline outbox using IndexedDB, allowing senders and receivers to draft transfers and queue proof uploads locally, auto-syncing as soon as connection recovers.
  3. Preventing AI Vision False-Fails: Strict Computer Vision checks can occasionally misread crumpled physical receipts. We introduced a human-in-the-loop fallback mechanism featuring a clear AI failure reason statement, one-tap re-upload retry, and a sender manual override protected by a 4-digit money PIN (1234).
  4. Cross-Border Dual Currency FX Volatility: Managing dual-currency markets like Liberia (LRD and USD) required real-time exchange rate caching and lock guarantees via Upstash Redis.

ACCOMPLISHMENTS THAT WE ARE PROUD OF

Live Production MVP Deployment: Successfully deployed both frontend and backend microservices live to production at www.ezri-africa.com with cloud Prisma Postgres PostgreSQL database, Upstash Redis caching, and Cloudflare R2 storage on Render infrastructure.

Real PayPal Orders v2 and Refunds Integration: Executed working payment capture and full refund flows through PayPal's sandbox API, complete with zero-key mock fallback resilience so judges can test without setup.

Production-Grade Microservice Architecture: Fully decoupled Gateway, AI Engine, and Prisma DB Service running with 100 percent clean test passes across 26 Python pytest suites and zero TypeScript compilation errors.

15-Nation Pan-African Disburse Hub: Seamless local currency conversion and payout support across 15 African countries including Liberia, Ghana, Nigeria, Senegal, Kenya, South Africa, Cote d'Ivoire, Tanzania, Uganda, Rwanda, Ethiopia, Egypt, Zimbabwe, Sierra Leone, and Gambia.

Virtual Card Vault: Integrated custom Visa and Mastercard virtual card generation with instant top-up from PayPal escrow, freeze, and delete capabilities.

Zero-Cost Fallback Resilience: Built an intelligent rule engine fallback so judges and developers can run the entire platform with zero external API keys.

WHAT WE LEARNED

Proof Builds Unshakeable Trust: Senders engage far more confidently when they see real-time status transitions (Draft to Held to Pass to Released) and visible AI verification reasoning.

Zero-Login Receiver Experience is Vital: Requiring African receivers to download heavy apps or register complex accounts creates massive friction. The zero-login web claim link dramatically increases payout completion rates.

Decoupled Fallbacks Prevent Downtime: Wrapping external APIs (OpenRouter, PayPal, Upstash Redis) in rule-based fallback engines ensures the application never crashes or displays white screens, even when external services fail.

WHAT IS NEXT FOR EZRI AFRICA

  1. Live PayPal Production Merchant Rails: Transition from PayPal sandbox API credentials to live production merchant settlement and automated disburse rails on www.ezri-africa.com.
  2. Production Mobile Money Settlement: Transition from mock MoMo disburse endpoints to live production settlements via licensed banking and mobile money partners like MTN, Orange, Safaricom M-Pesa, and Wave.
  3. WhatsApp Conversational Bot: Expose Ezri's Model Context Protocol (MCP) tool server to WhatsApp, allowing receivers to submit bill photos directly inside WhatsApp chat threads.
  4. Local Dialect Voice Models: Expand voice STT and TTS capabilities to support Pidgin, Swahili, French, and Wolof for non-English speaking rural communities.

Built With

Share this project:

Updates

Submission history