Collect Payment API - S2S Link and Pay

You can collection payments with BNPL using Link and Pay. This section provides the request and response parameters and you can get the sample request and response when use the "Try It" experience. For more information on integration, refer to Collect Payments with BNPL using Link and Pay

Environment

Reference information for request parameters

📘

Reference

For the character limit of each parameter and detailed description, 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
  • s2s_client_ip
  • s2s_device_info

Response parameters

Response parameters
ParameterDescription
metaDataJSON It is a JSON object containing more information about the response.
metaData.referenceIdString This is the PayU reference ID which we will be sending to merchant so that they can send us this back in second call.
binDataJSON This is a JSON object containing information about card number or token number.
binData.pureS2SSupportedBoolean The value for this parameter will be returned false for REDIRECT.
resultJSON This is a JSON object containing response of the request and to be used in subsequent steps.
result.otpPostUrlString The parameter will have null value in case of REDIRECT.
resutl.acsTemplate  String acsTemplate is a base64 encoded string. The merchant needs to decode acsTemplate, which is an HTML format with auto submit, which then needs to be shown on the customer’s browser. The HTML being auto submit, it will take the customer to the bank page for authentication.

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 . PayU recommends you to handle these errors when you process the transactions. For more information, refer to Error Codes for - S2S Link and Pay.

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