Integrate Import with UPI Autopay for PayUBiz
UPI Autopay integration for Cross-Border Import involves the following steps:
- Post a Registration transaction (one-time only)
- Post a Recurring transaction (repeat transaction flow)
Post a Registration transaction (one-time)
The following parameters (mandatory) must be posted using the _payment API:
Request parameters
The following are the additional request parameter required for cross-border payments with all of the above integrations.
<PaymentAPIEnvironment />
Parameter | Description | Example |
---|---|---|
key ``` mandatory
|
| ypl938459435 |
amount ``` mandatory
| AAAPZ1234C||22/08/1972 | |
udf3 |
| INV-123_1231||MerchantName |
Notes:
For udf1 and udf3, the following are applicable:
- if first value is absent, then UDF param will be sent as
NULL || <VALUE>- If second value is absent, then UDF param will be sent as
<VALUE>- If both values are absent, nothing will be sent in UDF param.
Sample request
curl --location 'https://test.payu.in/_payment' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'key=PRiQvJ' \
--data-urlencode 'txnid=my_order_64240' \
--data-urlencode 'amount=5' \
--data-urlencode 'productinfo=asfas' \
--data-urlencode '[email protected]' \
--data-urlencode 'phone=8688359250' \
--data-urlencode 'txn_s2s_flow=4' \
--data-urlencode 'hash={{hash}}' \
--data-urlencode 'pg=UPI' \
--data-urlencode 'bankcode=UPI' \
--data-urlencode 'surl=https://test.payu.in/admin/test_response' \
--data-urlencode 'furl=https://test.payu.in/admin/test_response' \
--data-urlencode 'udf1=' \
--data-urlencode 'udf2=' \
--data-urlencode 'udf3=' \
--data-urlencode 'udf4=' \
--data-urlencode 'udf5=' \
--data-urlencode 'si_details={"billingAmount":"10.00","billingCurrency":"INR","billingCycle":"ADHOC","billingInterval": 1,"paymentStartDate":"2024-11-19","paymentEndDate":"2025-12-01"}' \
--data-urlencode 'api_version=7' \
--data-urlencode 'si=1' \
--data-urlencode 'vpa=9999999999@upi' \
--data-urlencode 'firstname=sudhanshu' \
--data-urlencode 'lastname=kr' \
--data-urlencode 'address1=308,third floor' \
--data-urlencode 'address2=testing' \
--data-urlencode 'city=ggn' \
--data-urlencode 'state=UP' \
--data-urlencode 'country=IND' \
--data-urlencode 'zipcode=122018'
Post a Recurring transaction
To post a recurring transaction:
- Post the pre-debit notification before 48 hours of the actual debit to notify the customer. For more information, refer to Pre-Debit Notification API.
- Initiate recurring using the Recurring Payment Transaction API including the below UDF params under var1 object required for PACB flow. For more information, refer to Recurring Payment Transaction API.
Parameter | Description |
---|---|
udf1 | This parameter must include the PAN and DOB of the buyer in the following format:
|
udf3 | This parameter must include the invoice_id and the seller name(for PACB reseller use case) in the following format:
|
Notes:
For the UDFs above:
- If first value is absent, then UDF param will be sent as NULL || <VALUE>
- If second value is absent, then UDF param will be sent as \ <VALUE>
- If the Invoice ID value was unavailable when posting the transaction at Step 1, it can be updated using the UDF Update API by posting it in the UDF5 parameter. For more information, refer to UDF Update API.
- According to the RBI guidelines, the invoice file must be shared with PayU within 10 days of the transaction. The invoices can be uploaded using the Invoice Upload API. For more information, refer to Invoice Upload API.
Updated 5 days ago