Integrate Import for PayUBiz
The cross-border payment integration for PayUBiz involves the following significant steps:
Step 1: Make Payment using Web Checkout Integration
The following parameters (mandatory) must be posted using any of the following Web Checkout integration and refer to the corresponding section of Web Checkout Integration documentation for the complete list of parameters to be posted:
Request parameters
The following are the additional request parameter required for cross-border payments with all of the above integrations.
Environment
Test Environment | https://test.payu.in/_payment |
Production Environment | https://secure.payu.in/_payment |
Parameter | Description | Example |
---|---|---|
key mandatory | String Merchant key provided by PayU during onboarding. | Β JPg****f |
txnid mandatory | String The transaction ID is a reference number for a specific order that is generated by the merchant. | Β ypl938459435 |
amount mandatory | String The payment amount for the transaction. | 10.00Β |
productinfomandatory | String A brief description of the product. | Β iPhone |
firstnamemandatory | String The first name of the customer. | Ashish |
lastnamemandatory | String The last name of the customer. | Kumar |
emailmandatory | String The email address of the customer. | Β [email protected] |
phonemandatory | String The phone number of the customer. | Β |
address1mandatory | String Β The first line of the billing address.H.No- 17, Block C, Kalyan Bldg, Khardilkar Road, Mumbai Note: This information is helpful when it comes to issues related to fraud detection and chargebacks. Hence, it is must to provide the correct information. | 34 Saikripa-Estate, Tilak Nagar |
address2mandatory | String Β The second line of the billing address. | |
citymandatory | String Β The city where your customer resides as part of the billing address. | Mumbai |
statemandatory | String Β The state where your customer resides as part of the billing address, | Maharashtra |
countrymandatory | String Β The country where your customer resides. | India |
zipcodemandatory | String Β Billing address zip code is mandatory for the cardless EMI option.`Character Limit-20 | 400004 |
pgmandatory for seamless/s2s flow | String Β It defines the payment category that the merchant wants the customer to see by default on the PayUβs payment page. If this field is empty, the system assumes the credit card payment option by default. | CC, NB or UPI |
bankcodemandatory for seamless/s2s flow | String Β Each payment option is identified with a unique bank code at PayU. The merchant must post this parameter with the corresponding payment optionβs bank code value in it. | AMEX |
ccnummandatory for cards | String Use 13-19 digit card number for credit/debit cards (15 digits for AMEX, 13-19 for Maestro) and validate with LUHN algorithm. Refer to Card Number Formats and display error message on invalid input. | |
ccnamemandatory for cards | String This parameter must contain the name on card β as entered by the customer for the transaction. | |
ccvvmandatory for cards | String Use 3-digit CVV number for credit/debit cards and 4-digit security code (4DBC/CID) for AMEX cards. | |
ccexpmonmandatory for cards | String This parameter must contain the cardβs expiry month β as entered by the user for the transaction. It must always be in 2 digits or in MM format. For months 1-9, this parameter must be appended with 0 β like 01, 02β¦09. For months 10-12, this parameter must not be appended β It should be 10,11 and 12 respectively. | |
ccexpyrmandatory for cards | String This parameter must contain the cardβs expiry year β as entered by the customer for the transaction. It must be of four digits. | |
surlmandatory | String The success URL, which is the page PayU will redirect to if the transaction is successful. | |
furlmandatory | String The Failure URL, which is the page PayU will redirect to if the transaction is failed. | |
udf1mandatory if AD bank request this detail | String Β The Permanent Account Number of the buyer must be collected in this field. | AELPR****E |
udf3mandatory if AD bank request this detail | String The date of birth of the buyer must be collected using this field in the DD-MM-YYYY format. | 02-02-1980 |
udf4mandatory for payment aggregators | String This parameter must include end merchant legal entity name. | XYZ Pvt. Ltd. |
udf5mandatory | String The invoice ID or invoice number must be collected using this field. | 098450845 |
Sample request
curl --location '
https://test.payu.in/_payment'
\
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'key=JP***g' \
--data-urlencode 'txnid=my_order_9524' \
--data-urlencode 'amount=23' \
--data-urlencode 'productinfo=af' \
--data-urlencode '[email protected]' \
--data-urlencode 'phone=9044782113' \
--data-urlencode 'user_credentials=QyT13U:12345' \
--data-urlencode 'hash={{hash}}' \
--data-urlencode 'surl=https://test.payu.in/admin/test_response' \
--data-urlencode 'furl=https://test.payu.in/admin/test_response' \
--data-urlencode 'udf1=ABCDE1234K' \
--data-urlencode 'udf2=--' \
--data-urlencode 'udf3=02-02-1980' \
--data-urlencode 'udf4=Seller1' \
--data-urlencode 'udf5=INV002131-ASDF-1231' \
--data-urlencode 'firstname=as' \
--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'
Step 2: Update Invoice ID [Optional]
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.
Step 3: Upload the Invoices
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 13 days ago