Empowering Payments, Account Aggregation, Cryptographic Event Collections, & AI-Driven Financial Guardrails
Interactive Demo Walkthrough β’ Project Overview β’ Key Features β’ System Architecture β’ Tech Stack β’ Getting Started β’ API Reference
Because static screenshots cannot fully demonstrate live financial transactions and guardrail simulations, an interactive HTML demo walkthrough is bundled directly with the repository:
π Open the standalone interactive video walkthrough: demo_video.html
Features of the Demo Walkthrough Player:
- π± Realistic device mockup with live dynamic scene rendering (1080p 60FPS UI simulation)
- β― Full playback controls: Play, pause, scrubber seeking, next/prev chapter jump, and fullscreen mode
- π 4 Interactive Chapters:
- PayGo Core & UPI 2.0: P2P transfers, bill recharges, dynamic QR generation.
- Event Collect & Settlement Proofs: Group collections with dedicated UPI aliases and ECDSA cryptographic proof generation.
- Account Aggregator Financial Hub: Multi-bank linking, consent management, automated expense categorization.
- PayGo AI Financial Advisor: Guardrail-enforced financial chat powered by Llama-3 70B & deterministic checks.
PayGo is a comprehensive, production-grade fintech solution designed as the next evolution of mobile payments and personal financial management.
Beyond conventional UPI apps, PayGo introduces Event Collect (verifiable, direct-to-bank group fundraising), an RBI-compliant Account Aggregator Hub (multi-bank consolidation and automated categorization), and PayGo AI (an autonomous financial co-pilot equipped with deterministic spending guardrails).
- Instant Transfers: Send money to mobile contacts, bank accounts, or arbitrary UPI IDs.
- Dynamic QR Code Engine: Generates standard NPCI UPI intent strings and deep links (
upi://pay?pa=...). - Bill Fetch & Utility Payments: Automated bill retrieval for electricity, DTH, broadband, piped gas, and mobile recharge.
- Biometric & MPIN Security: 4-digit UPI PIN authentication with simulated bank switch validation.
- Custom Event Aliases: Register dedicated handles (e.g.
tripgroup@paygo) that resolve directly to the organizerβs linked bank account without custodial wallet risk. - Real-Time Settlement Ledger: Automated transaction tagging with audit trail (
taggedBy,taggedAt). - Cryptographic Audit Proof: Generates a canonical SHA-256 snapshot and ECDSA signature when an event closes, creating a verifiable public proof of all funds received.
- Consent-Driven Bank Linking: Create, inspect, and revoke financial information provider (FIP) consents.
- Portfolio Consolidation: Aggregate balances, savings, and credit accounts across multiple financial institutions into a unified net worth metric.
- Smart Categorization Engine: Automatically classifies raw bank statements into Food, Utilities, Transport, Shopping, Investments, and detects recurring subscriptions.
- Deterministic Guardrails:
SAFE: Transactions within discretionary limits proceed smoothly.WARNING: High-value transactions trigger cautionary notices.BLOCKED: Transactions that would violate emergency minimum balances (e.g., βΉ5,000 threshold) are stopped.
- Interactive Financial Actions: AI responses return actionable payloads such as dynamic expense bar charts and risk-profiled investment suggestions (Mutual Funds, High-yield FDs).
flowchart TD
subgraph Client ["Client Layer (Flutter Cross-Platform)"]
UI[PayGo Mobile App]
Home[Home Dashboard]
UPI[UPI & QR Scanner]
Evt[Event Collect Screen]
FinHub[Financial Hub]
AIChat[PayGo AI Screen]
end
subgraph Gateway ["API & Application Layer (FastAPI)"]
Server[FastAPI Server :8000]
AuthSvc[Auth & Session Service]
UPISvc[UPI & Settlement Service]
AASvc[Account Aggregator Gateway]
GuardrailSvc[Phinite Guardrail Engine]
end
subgraph Intelligence ["AI & External Services"]
Groq[Groq Llama-3 70B Engine]
AA[Account Aggregator Mock / Live Sandbox]
Crypto[ECDSA Proof & KMS Key Signing]
end
UI --> Server
Server --> AuthSvc
Server --> UPISvc
Server --> AASvc
Server --> GuardrailSvc
GuardrailSvc --> Groq
AASvc --> AA
UPISvc --> Crypto
| Domain | Technology / Library |
|---|---|
| Frontend Framework | Flutter 3.x / Dart 3.11 (Android, iOS, Web) |
| State Management | Flutter Riverpod 2.6 |
| Routing & UI | GoRouter, Google Fonts, Flutter Animate, Shimmer |
| Backend Framework | Python 3.11+, FastAPI, Uvicorn |
| Data Validation | Pydantic v2 |
| Cryptography | Python Cryptography (ECDSA, SHA-256 digest creation) |
| AI Inference | Groq Cloud API (llama3-70b-8192) with JSON Schema validation |
| QR & Documents | QR Flutter, PDF & Printing |
- Flutter SDK:
>= 3.11.0 - Python:
>= 3.10 - Git
-
Navigate to the backend directory:
cd paygo_backend -
Create and activate a virtual environment:
# Windows python -m venv venv .\venv\Scripts\activate # Linux / macOS python3 -m venv venv source venv/bin/activate
-
Install dependencies:
pip install -r requirements.txt
-
Launch the FastAPI server:
uvicorn main:app --reload --host 0.0.0.0 --port 8000
The interactive Swagger documentation will be available at
http://localhost:8000/docs.
-
Navigate to the app directory:
cd paygo_app -
Fetch Flutter dependencies:
flutter pub get
-
Run on your connected Android device, emulator, or Chrome:
# Run on Chrome flutter run -d chrome # Run on connected Android device flutter run -d android
| Method | Endpoint | Description |
|---|---|---|
POST |
/auth/otp/request |
Initiates mobile OTP session |
POST |
/auth/otp/verify |
Validates OTP and issues authentication token |
POST |
/upi/alias/register |
Registers custom @paygo event VPA on user's bank account |
POST |
/events |
Creates new collection event with target goal & expiry |
POST |
/events/{id}/close |
Closes event and produces ECDSA cryptographic settlement proof |
GET |
/verify/{id} |
Public audit endpoint to verify signed collection ledger |
POST |
/api/financial/connect |
Initiates Account Aggregator consent artifact |
POST |
/api/financial/accounts/sync |
Syncs statements and runs auto-categorization |
POST |
/financial/check-payment |
Runs deterministic financial guardrail evaluations |
POST |
/api/ai/chat |
AI chat completions with structured JSON actions |
- Non-Custodial Architecture: At no point do event collection funds stay in an intermediary PayGo wallet; all payments settle directly to NPCI-linked bank accounts.
- Immutable Proofs: Event closure generates an irreversible SHA-256 digest with asymmetric digital signatures.
- Strict Data Consent: Account Aggregator integration adheres strictly to revocable, purpose-limited data fetch policies.
This project is licensed under the MIT License.