About
## Wave 2 submission
We built and deployed a fully functional AI-powered cryptocurrency payment gateway from the ground up. Here's what was delivered: Live Application: https://swapcart.onrender.com Core Features Implemented 1. Product Catalog & E-Commerce Frontend
Built a responsive React-based storefront with product listings Implemented product cards with images, descriptions, and crypto pricing Created seamless browsing experience with Tailwind CSS styling Added "Buy Now" functionality for instant checkout
- AI Payment Assistant Integration
Integrated Google Gemini 2.5 Flash for conversational AI guidance Built chat interface where users can ask payment-related questions AI provides personalized cryptocurrency recommendations based on:
Network fees comparison
Transaction speed analysis Token availability User preferences
Stores chat history in Supabase for context retention
- SideShift Pay API Integration
Created Supabase Edge Function (create-order) for payment processing Integrated SideShift API for automatic crypto-to-stablecoin swaps Supports 100+ cryptocurrencies (BTC, ETH, SOL, DOGE, USDT, USDC, etc.) Generates unique deposit addresses for each transaction Fixed-rate swaps lock prices at order creation Non-custodial swaps ensure security
- Checkout Flow
Built modal-based checkout interface
Real-time cryptocurrency conversion rates display QR code generation for easy mobile payments Multiple token selection with live pricing Transaction hash tracking Payment confirmation system
- Real-Time Merchant Dashboard
Live order tracking with Supabase real-time subscriptions Revenue analytics and order history Order status updates (pending, completed, failed) Transaction details including blockchain hashes Filtering and search capabilities
- Database Architecture
PostgreSQL tables via Supabase:
products: Product inventory management
orders: Payment records with crypto details chat_conversations: AI assistant sessions chat_messages: Conversation history
Real-time subscriptions for live updates
- Serverless Backend
Two Supabase Edge Functions:
create-order: Handles payment processing and SideShift integration chat-assistant: Powers AI conversations with Gemini API
Serverless architecture for scalability
Technical Implementation
Frontend Stack:
React 18 with TypeScript for type safety Vite for fast development and optimized builds Tailwind CSS for responsive design shadcn/ui components for premium UI React Router for multi-page navigation
Repository Structure
GitHub: https://github.com/sarthak567/swap-cart
What Makes This Unique
First-of-its-kind: AI-guided crypto payment gateway Zero volatility risk: Merchants always receive stablecoins Maximum flexibility: Customers pay with any of 100+ tokens Instant settlement: Payments process in seconds No accounts needed: Frictionless checkout experience
From the public Akindo product page. Votes, swipes and the judge score are hackfeed's own.





