Paytm Clone

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
EndpointPurpose
POST /api/create-orderSimulates order creation
GET /redirectMocks payment redirection page
POST /api/callbackHandles fake gateway callback
GET /successFinal 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.