UPI Payments Workflow

Ayush Mittal
6 min readSep 24, 2023

--

Introduction: The Unified Payments Interface (UPI) is a real-time payment system in India that facilitates interbank transactions by instantly transferring funds between two bank accounts using a mobile platform. UPI is a revolutionary payment system that has simplified the way people make payments and transfer money. Here’s an overview of UPI:

Key Features of UPI:

1. 24/7 Availability: UPI transactions can be initiated and processed at any time of the day, including weekends and holidays.

2. Real-Time Settlement: UPI transactions are settled in real-time, which means the money is transferred instantly between accounts.

3. Single Interface: UPI provides a single interface for accessing multiple bank accounts through a single mobile app or platform.

4. Virtual Payment Address (VPA): Users can create a VPA, which serves as a unique identifier linked to their bank account. VPAs eliminate the need to share sensitive bank account details.

5. Two-Factor Authentication: UPI transactions require two-factor authentication, typically a mobile PIN (MPIN) or a biometric authentication method like fingerprints or iris scans.

6. Inclusive: UPI is inclusive and accessible to anyone with a bank account and a mobile phone.

7. Multiple Use Cases: UPI supports various use cases, including peer-to-peer transfers, bill payments, online shopping, and in-store purchases through QR code scanning.

Here is a comparison of UPI (Unified Payments Interface), NEFT (National Electronic Funds Transfer), RTGS (Real-Time Gross Settlement), and IMPS (Immediate Payment Service):

Please note that the specific features and limits of these payment systems may vary depending on the bank or financial institution you use. Always check with your bank for the most up-to-date information and terms.

Designing a complete UPI (Unified Payments Interface) workflow involves multiple components and interactions between various stakeholders, including banks, users, the National Payments Corporation of India (NPCI), and payment service providers (PSPs). Below, I’ll provide a high-level architecture diagram and describe the key components and steps involved in the UPI workflow.

UPI Components High-level Design

UPI Workflow (Basic Steps):

1. User Registration:
— Install a UPI-enabled app provided by a bank or a third-party service provider.
— Link one or more bank accounts to the app.

2. Virtual Payment Address (VPA) Creation:
— Create a unique VPA (e.g., yourname@bankname) linked to your bank account(s).

3. Initiating Transactions:
— To send money, enter the recipient’s VPA or mobile number.
— Specify the amount and purpose of the transaction.

4. Authentication:
— Authenticate the transaction using a mobile PIN (MPIN) or biometric authentication.

5. Transaction Processing:
— The UPI platform routes the transaction request to the sender’s bank.
— The bank verifies the transaction and debits the sender’s account.

6. Interbank Transfer:
— The transaction is routed to the recipient’s bank through the National Payments Corporation of India (NPCI).

7. Recipient Confirmation:
— The recipient’s bank verifies the transaction and credits the recipient’s account.

8. Notification: Both the sender and recipient receive notifications confirming the successful transaction.

9. Transaction History: Users can view their transaction history and account balance through the UPI app.

UPI Workflow Components:

1. User: The user initiates a UPI transaction through a mobile app or UPI-enabled service. They can use the app to create a Virtual Payment Address (VPA) and scan/enter QR codes to make payments.

2. Mobile App: The user interacts with a UPI-enabled mobile app, which acts as a client to the UPI system.

3. Virtual Payment Address (VPA) Management Service: This service allows users to create and manage their VPAs. It associates a user’s VPA with their bank account.

4. QR Code Generator/Scanner: This component generates QR codes for payments and scans QR codes to initiate payments.

5. Bank: The user’s bank, which holds their account and financial details. Banks are connected to the NPCI and play a pivotal role in the UPI ecosystem.

6. National Payments Corporation of India (NPCI): NPCI is the governing body responsible for managing and regulating UPI transactions in India. It acts as a clearinghouse and settlement platform.

7. Payment Service Provider (PSP): PSPs are intermediaries that facilitate UPI transactions between users and banks. PSPs are authorized entities that provide UPI services to users.

UPI Workflow Steps in brief: Here’s a step-by-step UPI workflow

1. User Registration:
— User installs a UPI-enabled app.
— User creates a VPA linked to their bank account.
— VPA information is stored in the VPA Management Service.

2. QR Code Generation (Merchant):
— A merchant generates a QR code containing payment details (VPA, amount, and optional remarks).
— The QR code is displayed at the point of sale.

3. Payment Initiation (User):
— User scans the merchant’s QR code using the app.
— Payment details are extracted from the QR code.
— User confirms the payment and provides a UPI PIN for security.

4. Transaction Request (Mobile App to PSP):
— The mobile app sends a transaction request to the user’s PSP, including the payment details.

5. Transaction Routing (PSP to NPCI):
— The PSP routes the transaction to the NPCI.
— NPCI verifies the transaction and forwards it to the user’s bank.

6. Transaction Authorization (Bank):
— The user’s bank authorizes the transaction based on the user’s account balance and UPI PIN.

7. Confirmation (Bank to NPCI to PSP):
— The user’s bank sends a confirmation to NPCI, indicating that the transaction is approved.
— NPCI forwards the confirmation to the PSP.

8. Confirmation (PSP to Mobile App):
— The PSP notifies the user’s mobile app of the successful transaction.
— The mobile app displays a payment confirmation to the user.

9. Transaction Settlement (NPCI to Banks):
— NPCI settles the transaction by transferring funds from the user’s bank to the merchant’s bank.

10. Transaction Completion (Merchant):
— The merchant receives a notification of the successful payment.

Architecture Diagram:

High-Level Design of UPI payments workflow

Please note that the actual implementation of this workflow would require extensive technical details, security measures, and compliance with regulatory standards. Additionally, the architecture may differ slightly depending on the specific technology stack and business requirements of the solution.

Use Cases of UPI:

1. Peer-to-Peer (P2P) Transfers: Users can send money to friends and family members by simply using their VPAs or mobile numbers.

2. Merchant Payments: UPI is widely accepted at retail stores, online shops, and for various bill payments, including electricity, water, and mobile bills.

3. Subscription Payments: Users can set up recurring payments for subscriptions and services.

4. Ticket Booking: UPI can be used for booking train, bus, and flight tickets.

5. UPI-based Apps: Many apps and services offer UPI as a payment option, including food delivery, ride-sharing, and e-commerce platforms.

UPI has revolutionized digital payments in India and has seen tremendous adoption due to its convenience, security, and interoperability across banks and service providers. It has also played a significant role in advancing financial inclusion and reducing the reliance on cash transactions.

References :

https://chat.openai.com/

--

--

Ayush Mittal

Tech Architect with 12 years in software development, specializing in microservices and cloud-native solutions including 3 years designing enterprise solutions.