Subscriptions Integration
Overview
PayU Subscriptions allow you to charge your customers automatically on a recurring basis. With PayU Subscriptions, you can set up various billing models, manage subscription lifecycles, and ensure regulatory compliance for automated recurring payments.
Key Features
- Automated Recurring Billing: Charge customers automatically based on predefined schedules
- RBI Compliance: Fully compliant with RBI guidelines for recurring payments
- Smart Retry Logic: Automatically retry failed payments with configurable schedules
- Flexible Billing Models: Support for fixed, and variable billing
- Comprehensive Webhooks: Real-time notifications for all subscription events
- Customer Management: Complete customer lifecycle management with payment method tokenization
Workflow
PayU Subscriptions offers two primary integration approaches to accommodate different business requirements and technical implementations:
Step 1: Create a Subscription
There are two ways to create a Subscription:
1.1 Non-Seamless Integration (PayU Hosted Checkout)
Customers redirect to PayU's hosted payment page for subscription setup with built-in compliance features, requiring minimal frontend development while PayU handles regulatory requirements.
For more information, refer to PayU Hosted Integration.
1.2 Seamless Integration (Merchant Hosted Checkout)
Seamless integration provides greater control by embedding payment collection directly into merchant applications, supporting multiple payment instruments with specific integration patterns for enhanced customer experience.
Different modes to integrate:
-
UPI Integration: Customers are redirected to their UPI app for mandate approval through intent-based flows, providing a familiar mobile-first experience. For more information, refer to UPI Subscriptions Integration.
-
Cards Integration: Card-based subscriptions utilize redirect flows to PayU's secure tokenization interface, ensuring PCI DSS compliance and RBI tokenization requirements. For more information, refer to Cards Subscription Integration.
-
ENACH Integration: Direct integration with NPCI's ENACH infrastructure enables automated mandate creation for net banking customers, supporting digital mandate workflows. For more information, refer to Net Banking Integration.
Step 2: Mandate Management APIs
Before proceeding to hit pre-debit/recurring payments, check the mandate status using the following APIs:
| Payment Mode | API Reference |
|---|---|
| Cards | The Check Mandate Status API enables you to understand the current state of the mandate with cards at any time. Refer to Check Mandate Status API. |
| UPI Autopay | Used to understand the current state of the UPI mandate at any time. Refer to Get Mandate Status API (for UPI only). |
| ENACH/Net Banking | Check the Net Banking Mandate Status API. Refer to Net Banking Mandate Status API. |
Step 3: Recurring Payment Processing
After subscription creation and mandate approval, PayU provides comprehensive APIs for recurring payment lifecycle management, covering pre-debit notifications, payment processing, and mandate management across all payment methods.
Step 3.1: Pre-Debit Notification API (Card and UPI Autopay Only)
The Pre-Debit Notification API is mandatory for RBI compliance and must be called 24-36 hours before processing any recurring payment. This API sends notifications to customers about upcoming charges via SMS and email.
For more information, refer to Pre-Debit Notification API.
Step 3.2: Recurring Payment Processing
This API processes the actual recurring payment after the pre-debit notification period has elapsed.
For more information, refer to Recurring Payment Transaction API.
Step 3.3: Modify or Cancel Recurring Payments
For Cards (VISA/Mastercard):
For Cards (AMEX):
For ENACH/Net Banking:
PayU's ENACH APIs enable net banking mandate status monitoring, cancellation management, and UMRN tracking for seamless recurring payment administration across participating banks.
For UPI:
Manage Mandates
Check Mandate Status
Before proceeding to hit pre-debit/recurring payments, check the mandate status:
| Payment Mode | API |
|---|---|
| Cards | Check Mandate Status API |
| UPI Autopay | Get Mandate Status API (for UPI only) |
| ENACH | Net Banking Mandate Status API |
Additional Mandate Management APIs
- Validate VPA API: Use this API to validate if a VPA supports recurring payments before initiating a UPI mandate. Refer to Validate VPA API.
Customization and Advanced Features
Pay and Subscribe Flow (SI=4)
The Pay and Subscribe flow allows merchants to collect an initial payment along with subscription setup in a single transaction. By setting the si parameter to 4, customers can make an immediate purchase while simultaneously authorizing future recurring payments, streamlining the onboarding process for subscription services.
For more information, refer to Pay and Subscribe Consent Transaction.
Third Party Validation (TPV) Flow
TPV flow enables additional validation layers for high-value subscriptions or regulated industries. This feature allows merchants to implement custom validation rules, fraud checks, or compliance requirements before finalizing subscription creation, ensuring adherence to specific business or regulatory standards.
For more information, refer to Introduction to PayU TPV.
Direct ENACH Integration
For enterprises requiring deeper control over the mandate lifecycle, direct ENACH integration bypasses standard redirect flows. This approach enables merchants to handle mandate creation, modification, and cancellation through direct API calls to NPCI infrastructure, providing complete control over the customer journey while maintaining regulatory compliance.
For more information, refer to Net Banking Recurring Payment Consent Transaction.
Updated about 1 hour ago
