Check Status APIs – PayU Documentation

Check Status APIs

Overview

 

“Check status” is a set of APIs that PayUbiz offers to verify the status of a transaction, after it has been initiated. Check status APIs are very useful in reconciling the status of a transaction that might have got dropped while the response is sent from PayU server to your server . This keeps you more updated about the status of your transactions and reduce drops significantly.

Here, you’ll find more information on how to integrate and use ‘check status’ APIs.

Pre-requisites

  • Test key and salt.
  • Live key and salt.

Steps Involved

In order to integrate the “check status” APIs, you need to do the following:

  1. Making a POST request.
  2. Accepting response.

There are two ways to check the status of a transaction, apart from the response you get from PayU, depending on what you provide as an input value:

  1. Using transaction id as input
  2. Using payuid as input

Transaction ID as an input

 

You would have to call the API (verify_payment) to get a status update of the requested transaction.

Post:

In order to call verify_payment API, you need to send following parameters.

Environment URL
Test https://test.payu.in/merchant/postservice.php?form=1

Parameters:

Parameter Description Sample value
key Your key provided by payu  JBiPgT
command Name of web service call verify_payment
hash Security parameter— SHA512(key|command|var1|salt)
var1 txnid=You need to put all the txnid’s in a pipe seprated format. 100123|100124|100125|100126

Sample Code

Response

payuid as an input

 

You would have to call the API (verify_payment) to get a status update of the requested transaction.

Post:

In order to call verify_payment API, you will have to send us some parameters which are as follows:

In order to make this API call, you would have to send us the following parameters:

Environment URL
Test https://test.payu.in/merchant/postservice.php?form=1

 

Parameters:

Parameter Description Sample value
key Your key provided by payu JBiPgT
command Name of web service call  verify_payment
hash Security parameter— SHA512(key|command|var1|salt)
var1 mihpayid=You need to put all the payuid’s in a pipe seprated format. 100123|100124|100125|100126

Sample Code

Response

Still have questions?

Our team will be more than happy to help you. You can reach out to them at tech@payu.in