UPI PayIn

Payment registration transactions

UPI HPP & H2H


1. UPI PayIn

Description:
UPI (Unified Payments Interface) is a payment service for bank transfers in India.
 
This method allows users to make transfers via a hosted payment page.
 
When using this method, you will receive a redirect_hpp_url for the payment page, where the customer should be redirected. On this page, the customer can choose one of the available UPI payment options:
 
  • Scan QR Code
  • Use VPA (Virtual Payment Address)
 
After completing the payment in the UPI app, the customer will receive a UTR code, which must be entered on the payment page to confirm the transaction.
 
The customer has about 15 minutes to enter the UTR code. If it is not entered within this time, the transaction will be cancelled.
 
Allows the creation of pay-ins (incoming payments).
 
URL:https://api.payelu.xyz/api/v1/payments/payin_hth
 

Country Uses:

  • India: UPI
 

Request Parameters:

Parameter
Type
Description
Requeriment
service_code
string
UPI_FTD_IN’ ’UPI_TRUST_IN
required
amount
num
Amount to process. e.g. 123.45
required
reference
string
Merchant’s Unique ID for transaction. It must be 22 alfanumeric digits (i.e. ‘0000000000002507135224‘)
required

UPI Example Request:

{ "service_code": "PIX_BR", "amount": 200, "reference": "0000000000002507135224", "expired_at": "2025-06-06T22:59:59Z", }

UPI Example Response:

{ "status": "success", "data": { "transaction_id": "0000000000002123123507135224SFX124", "amount": 200, "currency": "INR", "status": "PENDING", "reference": "0000000000002123123507135224", "created_at": "2025-10-06T22:24:17.209257+00:00", "updated_at": "2025-10-06T22:24:17.209257+00:00", "expired_at": "2025-10-07T22:24:17.209257+00:00", "qrCode": "iVBORw0KGgoAAAANSUhEUgAAAJQAAACUAQAAAABdRz15AAABQ0lEQVR4nM2WMY4cMQwEiwvnrR/c/591P2i9oByM4cAHBzYXsCcjATUosdjDkV+/+/qSgn+Xm5lzmTN3hpk5Kz2MRgKkiabLmucwuYmlzNnd9xsAPT2d0D+t5Te5JMDn/ZuzX3KW29vTU7A7vXEgP8ML+dz1V5VA0ydY9RcJBFEkZqf3QmghB27gbnkWU2sfqJc8I1hrK9R2q6dE04hl34+CFok2ZltfUiBpknT/fqkl0DaY9X1NIobUpku9F/e2B6DwDv6qiRVJCW/oh9a2Jabb9wsBU6yy9XusaX/wJ13qjecC/XjCN/hfGyNgece8pX3GwgZ4gx9o+jATWc8v8MyGbcKSvxdR8pl77oHi9v92bgB6TzPgbr/6sR8MfIRbPg4rXh69Iadwbq87P3j2A3LvzADeLv0FCI+5mGz5m/983/0O49oTWBR5e+sAAAAASUVORK5CYII=", "upi_link": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "redirect_hpp_url": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" } }
After receiving redirect_hpp_url, you need to redirect the client to the URL and wait for the final status of the transaction.