Skip to main content

UPI Payments

Process UPI (Unified Payments Interface) payments through the Host-to-Host API for instant, real-time transactions in the Indian market with 24/7 availability.

Overview

UPI payment processing provides:
  • Instant Transfers: Real-time payment processing
  • 24/7 Availability: Round-the-clock payment processing
  • Mobile Optimized: Designed for mobile-first experience
  • UPI ID Validation: Automatic UPI ID format validation
  • Low Fees: Cost-effective payment processing
  • Bank Integration: Direct integration with Indian banks

Required Parameters

UPI-Specific Fields

Customer Information

Transaction Details

Complete Request Example

Implementation Example

JavaScript/Node.js

Python

UPI ID Validation

Valid UPI ID Formats

  • Format: username@bankcode
  • Examples:
    • user@paytm
    • 9876543210@ybl
    • john.doe@oksbi
    • mobile@paytm

UPI ID Validation Function

Payment Flow

1. UPI Payment Initiation

2. Handle UPI Response

Major UPI Apps

Bank UPI Handles

Error Handling

Common UPI Error Codes

  • INVALID_UPI_ID: UPI ID format is invalid
  • UPI_ID_NOT_FOUND: UPI ID does not exist
  • INSUFFICIENT_FUNDS: Insufficient balance in UPI account
  • UPI_DECLINED: Transaction declined by UPI provider
  • UPI_TIMEOUT: UPI transaction timeout
  • DAILY_LIMIT_EXCEEDED: Daily transaction limit exceeded

Error Response Example

Transaction Limits

UPI Transaction Limits

  • Per Transaction: ₹1,00,000 (1 Lakh INR)
  • Daily Limit: ₹1,00,000 (1 Lakh INR)
  • Monthly Limit: ₹20,00,000 (20 Lakh INR)
  • Minimum Amount: ₹1 (1 INR)
Limits may vary by bank and UPI provider. Always check with the specific provider for current limits.

Security Features

UPI Security

  • Two-Factor Authentication: UPI PIN + device authentication
  • Encrypted Communication: End-to-end encryption
  • Device Binding: UPI apps are bound to specific devices
  • Transaction Limits: Built-in transaction limits for security

Implementation Security

Testing

Test UPI IDs

For testing purposes, use these test UPI IDs:
  • Success: success@paytm
  • Failure: failure@paytm
  • Timeout: timeout@paytm
  • Insufficient Funds: insufficient@paytm

Test Scenarios

Best Practices

Implementation

  1. UPI ID Validation: Always validate UPI ID format
  2. Amount Validation: Check transaction limits
  3. Mobile Optimization: Optimize for mobile devices
  4. Real-time Status: Provide real-time payment status

User Experience

  1. UPI App Integration: Deep link to UPI apps when possible
  2. QR Code Option: Provide QR code for easy scanning
  3. Clear Instructions: Provide clear payment instructions
  4. Status Updates: Keep users informed of payment progress

Compliance

  1. RBI Guidelines: Follow Reserve Bank of India guidelines
  2. Data Protection: Protect customer financial data
  3. Transaction Records: Maintain proper transaction records
  4. Audit Trail: Keep audit trail of all UPI transactions

Next Steps

Google Pay Integration

Learn about Google Pay payment integration

Payment Status

Track UPI payment status

Webhooks

Handle UPI payment notifications