Paytm Clone

Paytm Clone

A mock transaction flow demo using Next.js — simulates Paytm-style payments with full order, redirect, and callback logic.

Paytm Clone – Mock Transaction Flow

Note:

This project is a simulated payment experience built with Next.js. It recreates Paytm's order → redirect → callback cycle for learning, prototyping, and demonstration purposes.


Key Features

FeatureDescription
Simulated Payment FlowFull cycle: Create Order → Redirect → Callback
Mock Transaction StatusPretend payment results from a gateway
Backend APIsServerless handlers for callback and order logic
Dynamic RoutingApp Router pages for success, loading, and error screens

Technologies Used

LayerTech Stack / Tools
FrameworkNext.js (App Router)
BackendServerless API routes (/api)
StylingTailwind 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 transactions in Next.js
  • Using serverless API routes for backend logic
  • Managing asynchronous transitions across UI screens