Skip to main content
Accept UPI payments from customers in India with PayU India as the payment service provider (PSP). On a phone, the customer goes straight to their UPI app. On a desktop, the customer scans a QR code with any UPI app.

Supported workflows

WorkflowSupported
Payrails SDK✔
Payrails API✔
Delayed / Manual Capture✖
Instant Capture✔
Cancel / Void✖
Refund / Reverse✔
Save Instruments✖
Merchant Initiated Transaction (MIT)✖

Before you begin

Complete these steps before you send your first UPI payment through PayU India:
  1. Set up a PayU India integration in your workspace. Follow the PayU India integration setup guide if you don’t have one yet.
  2. Ask PayU India to enable UPI on your PayU India merchant account.
  3. In the PayU dashboard, create the successful and failed payment webhooks with your Payrails notification URL. Payrails receives the UPI payment result through them. The setup guide shows the steps.
  4. In the Payrails Portal, go to Settings → Integrations, open your PayU India integration, select UPI under Payment methods, and save.
  5. Add UPI as a payment option in your workflow.

Request fields for PayU India

Send these fields in the authorize request, in addition to the standard authorize fields. Required fields must be present for the payment to succeed. Payrails sends Optional fields to the PSP when you include them.

Authorize a UPI payment

Call authorize a payment with upi as the paymentMethodCode. The response includes the redirect for the customer.
Authorize request
After the customer approves the payment in their UPI app, PayU India sends the result to Payrails through the payment webhooks. Confirm the result through webhook notifications or the execution status before you fulfill the order.

Choose the journey

Payrails picks the journey from the device:
  • UPI intent: when meta.clientContext.osType is android or ios, or the user agent belongs to a phone or tablet, the redirect is a upi:// deep link that opens the customer’s UPI app.
  • QR code: on any other device, Payrails shows a QR code on a Payrails-hosted page, and the customer scans it with any UPI app.
To show the QR code page on every device, send qr as the flow:
UPI journey

How PayU India handles UPI

  • PayU India captures UPI payments immediately.
  • PayU India signs each payment webhook with your merchant salt, and Payrails verifies the signature before it updates the payment.
  • Payrails sends full and partial refunds to PayU India against the original transaction. PayU India completes refunds in the background, and Payrails checks the status until it gets a final result.
Last modified on October 30, 2026