Built for Superteam India × Dodo Payments Hackathon · Solana Frontier 2025
🔴 Live App · 📂 Source · Demo: demo@flowpay.in / demo123
Landing → Sign in → Module select → PayRails payroll with live Dodo
cks_session → CreatorPay public checkout
What you're seeing (frame by frame)
- Landing — Purple particle-network hero. Live Solana Mainnet status indicator top-right.
- Sign in — Demo credentials shown (
demo@flowpay.in/demo123). - Module select — "Which rail today?" — all five payment rails with fees. Matrix-column rain background.
- PayRails dashboard — Live payment table: $5,750 volume, 2.3 s avg settlement. First row shows
Dodo: cks_0NeEixAR…— a real Dodo Payments checkout session created by the SDK. - CreatorPay public checkout — Shareable
/buy/:idlink (no login needed). Product price in USDG + INR equivalent. One click → Dodo hosted checkout redirect.
FlowPay is a stablecoin payment platform built for India — powered by Dodo Payments and settled on Solana. Five purpose-built payment products in one place: payroll, cross-border money transfers, smart contract escrow, creator product sales, and AI agent wallets.
Every payment settles on-chain in under 3 seconds. Every transaction produces a Solana signature as an immutable receipt. Dodo Payments handles the real checkout experience and fiat delivery — converting USDG to INR and routing it to the right bank account or UPI handle.
FlowPay is built on the Dodo Payments SDK. Every transaction — across all five modules — creates a real Dodo product and a real checkout session. No mocks, no simulations.
Every time you send a payroll payment, remittance, escrow deposit, or product purchase, FlowPay:
- Creates a product entry in Dodo with the exact amount and description
- Creates a secure checkout session — a real
cks_…link you can open and pay - Tracks the payment and updates the status in the FlowPay dashboard
Payment confirmations When someone completes a payment through Dodo, FlowPay now automatically receives the confirmation. The payment status in the dashboard updates on its own — no manual refresh, no guessing whether the payment went through.
Customer accounts Every buyer is now registered as a persistent customer in Dodo when they pay. This means repeat buyers are recognised, and future features like saved payment methods will work seamlessly.
Refunds Disputed escrow contracts can now trigger a refund directly through Dodo. The money goes back to the original payment method automatically — no manual back-and-forth needed between client and freelancer.
Recurring payroll PayRails can now set up monthly salary runs as Dodo subscriptions. Once a recurring payroll is configured, it repeats every billing cycle automatically — no manual action needed for each run.
Shareable direct buy links CreatorPay products now have an on-demand Dodo checkout link. Creators can generate a direct payment link that takes the buyer straight to checkout — no FlowPay account required, no extra steps.
India receives over $100 billion in annual remittances. The average cross-border transfer takes 2–5 days and costs 5–8%. Payroll for remote Indian contractors requires expensive wire transfers. Freelancer escrow runs on trust or costly legal agreements. Creator payments from global audiences are gated behind processors charging 5–10% with 30-day holds.
FlowPay replaces every one of these with Dodo + Solana:
| Old Way | FlowPay + Dodo |
|---|---|
| 2–5 day settlement | Under 3 seconds |
| 5–8% fees | 0.5–2% |
| Wire transfers, SWIFT | Solana on-chain + Dodo checkout |
| Trust-based escrow | Smart contract — trustless |
| Manual INR conversion | Built in (1 USDG = ₹83.52) |
| Chargebacks possible | Impossible — on-chain, final |
Route: /payroll · Fee: 0.5%
PayRails lets any company pay Indian contractors, remote workers, and DAO contributors in USDG. The USDG converts to INR at the point of receipt and lands directly in the recipient's UPI handle — no bank account needed.
Payment flow:
- Enter recipient's name, UPI ID, and amount in USDG
- FlowPay shows the INR equivalent at live rates (1 USDG = ₹83.52)
- Hit Send → Solana settles in ~2.3 seconds
- Dodo creates a checkout session → clickable confirmation link appears in UI
- Dodo routes INR to the recipient's UPI handle
- Solana transaction signature returned as on-chain proof
Route: /remittance · Fee: 0.75%
Direct replacement for Western Union, Wise, and hawala networks. Send from UAE, US, UK, Singapore, Canada, or Australia to any Indian UPI handle — the money arrives in INR in under 2 seconds.
Payment flow:
- Choose your source country and enter the amount in your local currency
- FlowPay shows the exact INR amount the recipient will receive
- Confirm → USDG settles on Solana in under 2 seconds
- Dodo's cross-border corridor converts and routes the INR to the recipient's UPI
- Solana transaction signature returned as on-chain proof
The economics: Western Union charges 3–8% on UAE → India. On a $500 remittance, that's $15–40 in fees. RemitDirect charges 0.75% — $3.75 for the same transfer, delivered in 2 seconds instead of 2 days.
Route: /escrow · Fee: 0.5%
Trustless escrow for freelancers and clients. Funds lock into a Solana smart contract and only release when milestones are marked complete — neither party needs to trust the other.
Payment flow:
- Client creates an escrow contract with the agreed amount and milestone breakdown
- USDG locks into a Solana smart contract — the client's funds are secured
- Freelancer completes the milestone and marks it done
- Client reviews and approves the release
- Dodo processes the payout → INR lands in the freelancer's account
- Solana transaction signature recorded as on-chain proof
Escrow states: Active → Released → Completed / Disputed
Route: /creator · Fee: 2%
List any digital product and share a link — buyers don't need an account. USDG settles in seconds and creators receive payment with no reversals, no holds, no geographic restrictions.
Payment flow:
- Creator lists a product with a title, description, type, and price in USDG
- FlowPay generates a shareable
/buy/:idlink — share it anywhere - Buyer opens the link, enters their name and email, and clicks Buy
- Dodo processes the checkout → buyer is taken to the hosted payment page
- Payment settles on Solana — creator receives USDG instantly
- Solana transaction signature returned as proof of purchase
vs alternatives:
- Gumroad: 10% fee, USD-only, 2–5 day payouts
- Stripe: 2.9% + $0.30, reversible up to 120 days, country restrictions
- CreatorPay: 2%, on-chain final, settled in seconds
Product types: Course · eBook · Template · Newsletter · Membership
Route: /agents · Fee: 1%
Infrastructure for the autonomous economy. Each AI agent gets its own Solana wallet funded with USDG and can pay for services automatically — no human approval needed at payment time.
Payment flow:
- Register an AI agent and assign it a dedicated Solana wallet
- Fund the wallet with USDG
- The agent encounters a service requiring payment (HTTP 402 response)
- AgentBank reads the payment instructions and executes the transfer automatically
- USDG settles on Solana — the service is unlocked
- All agent transactions logged with purpose and Solana signature
What is x402? An emerging protocol where HTTP 402 Payment Required responses carry machine-readable payment instructions. An AgentBank-funded agent reads them and pays automatically — no human in the loop.
| Criterion | FlowPay |
|---|---|
| Dodo Payments integration | ✅ Real SDK calls — products, checkout sessions, webhooks, refunds, subscriptions, customer accounts |
| Real working product | ✅ Five fully functional modules, end-to-end |
| India-specific | ✅ UPI delivery, INR conversion, six cross-border corridors |
| Solana-native | ✅ Every payment produces a Solana transaction signature |
| AI-ready | ✅ AgentBank + x402 for fully autonomous agent payments |
| Revenue model | ✅ Fee-based, earns from the first transaction |
| Full-stack | ✅ Backend, frontend, database, OpenAPI spec, codegen |
| USDG stablecoin | ✅ USDG is the base currency across all five modules |
FlowPay/
├── artifacts/
│ ├── api-server/ ← Express 5 REST API (PostgreSQL + Drizzle ORM)
│ │ └── src/lib/dodo.ts ← Dodo Payments SDK client (test_mode)
│ └── flowpay/ ← React 18 + Vite 7 SPA
├── lib/
│ ├── api-spec/ ← OpenAPI 3.1 spec (50+ endpoints)
│ ├── api-zod/ ← Auto-generated Zod schemas + TanStack Query hooks
│ └── db/ ← Drizzle ORM schema + PostgreSQL migrations
| Layer | Tech |
|---|---|
| Frontend | React 18, TypeScript, Vite 7, Tailwind CSS v4 |
| State & Routing | Zustand, Wouter, TanStack Query |
| Backend | Express 5, Drizzle ORM, PostgreSQL, Pino logging |
| Validation | Zod (auto-generated from OpenAPI spec) |
| Auth | Base64 Bearer token (userId + timestamp) |
| Payment Layer | Dodo Payments SDK (real API calls) + Solana (settlement) |
| Stablecoin | USDG |
| Contract | OpenAPI 3.1 → Orval codegen |
Pure black (#070707) background. Neon green (#00ff88) for live indicators and success states. Each module has its own accent color (green, sky blue, purple, pink, orange). Purple particle network on the landing page. Matrix-style column rain on the module select page.
11 tables, every feature covered:
| Table | What it stores |
|---|---|
users |
Auth handle, display name |
wallets |
USDG balance, INR balance, total sent/received |
wallet_transactions |
Every balance movement with timestamps |
payroll_payments |
PayRails records, Solana signatures, Dodo session IDs |
remittances |
Cross-border transfers, corridors, INR amounts |
escrows |
Contract addresses, milestone counts, status |
creator_products |
Listings, price, type, sales count, Dodo product ID |
creator_sales |
Purchase records, buyer info, Solana signatures |
agents |
Agent registry, wallet address, x402 flag |
agent_transactions |
Per-agent payment history with purpose |
# Install dependencies
pnpm install
# Set environment variables
DATABASE_URL=...
SESSION_SECRET=...
DODO_API_KEY=... # from https://app.dodopayments.com
# Start API server
pnpm --filter @workspace/api-server run dev
# Start React frontend (separate terminal)
pnpm --filter @workspace/flowpay run dev
# Push DB schema
pnpm --filter @workspace/db run pushDemo login: demo@flowpay.in / demo123
| Module | Fee | At $1M/mo volume |
|---|---|---|
| PayRails | 0.5% | $5,000/mo |
| RemitDirect | 0.75% | $7,500/mo |
| EscrowX | 0.5% | $5,000/mo |
| CreatorPay | 2% | $20,000/mo |
| AgentBank | 1% | $10,000/mo |
Built for Superteam India × Dodo Payments Hackathon · Solana Frontier 2025
