Paytm Clone
A mock transaction flow demo using Next.js β simulates Paytm-style payments with full order, redirect, and callback logic.
πΈ Paytm-Style Transaction Flow (Mock)
Note:
This is a simulated payment experience built with Next.js. It recreates Paytm's orderβredirectβcallback cycle for learning and prototyping.
β¨ Key Features
- π Simulated Payment Flow β Create Order β Redirect β Callback
- π§Ύ Mock Transaction Status β Pretend payment result from gateway
- π© Backend APIs β Serverless handlers for callbacks
- π Dynamic Routing β App Router pages for success & loading screens
π Tech Stack
- Framework: Next.js (App Router)
- Backend: Serverless API routes (
/api
) - Styling: Tailwind CSS
π§± How It Works
User β Create Order β Mock Redirect β Callback API β Success Page
Endpoint | Purpose |
---|---|
POST /api/create-order | Simulates order creation |
GET /redirect | Mocks payment redirection page |
POST /api/callback | Handles fake gateway callback |
GET /success | Final screen with success info |
π§ What I Learned
- π§© Building realistic payment flow simulations
- π Handling full redirect-based payments in Next.js
- π¦ Using API routes for backend control in the App Router
- π Managing async transitions across UI screens
Want to mimic payment gateways for learning or demos? This mock Paytm flow gives you a sandbox for experimenting with serverless transactions.