Collect Payment API - PayU Hosted Checkout

The Collect Payment API (_payment API) is used to collect payments for all the Web Checkout integration.

📘

Reference:

For an example of how to submit a payment request on your website, refer to Submitting Payment Request on your Website. To handle redirect URLs (surl and furl), refer to Handling the Redirect URLs.

❗️

API Reference Limitation

Currently, you can check only the response for the API calls made with PayU Hosted Checkout integration on this page, so you cannot open the simulator of PayU Hosted Checkout page. For the sample simulator page, navigate to the following URL and click Submit:
https://api-playground.payu.in/

Environment

Reference information for request parameters

For the character limit of each parameter, refer to Additional Info for Payment APIs.

ParameterReference
keyFor more information on how to generate the Key and Salt, refer to any of the following:

- Production: Generate Merchant Key and Salt
- Test: Generate Test Merchant Key and Salt
hashHash logic for _payment API is:
sha512(key|txnid|amount|productinfo|firstname|email|udf1|udf2|udf3|udf4|udf5||||||SALT) For more information about the hash generation process, refer to Generate Hash

📘

Note:

Collecting the information for the following parameters from customers is helpful when it comes to issues related to fraud detection and chargebacks. Hence, it is must to provide the correct information:

  • email
  • phone
  • address1

Response parameters

For the response parameters, refer to Additional Info for Payment APIs

Request parameters

🚧

Error Handling:

A list of error_message with corresponding error code and reason for the error is listed in Error Codes. PayU recommends you to handle these errors when you process the transactions.

Language
Click Try It! to start a request and see the response here!