Razorpay Charge at Will (UPI Mandate) Integration Guide
A step-by-step guide to integrate Razorpay’s “Charge at Will” feature using UPI recurring payments in a Next.js application.
Table of Contents
- Overview
- Prerequisites
- Environment Setup
- Database Schema
- API Routes
- Frontend Integration
- Webhook Handler
- Flow Diagram
- Testing
- Common Issues
Overview
Charge at Will (also known as UPI Mandate) is Razorpay’s recurring payment solution that allows you to:
- Set up a one-time authorization from customers
- Charge them automatically whenever needed (without requiring manual payment each time)
- Perfect for subscription-like services where you want flexibility in charging amounts