1. Home
  2. PAYDirect WEB
  3. Transaction Confirmation Leg
  4. Getting Transaction Status

Getting Transaction Status

Getting Transaction Status by Querying the WebService 

This service URL can be used to get the status of a transaction. Below are the HTTP request method and parameters to be used.

 

GetTransactionData 

GET https://sandbox.interswitchng.com/webpay/api/v1/gettransaction.json

GET https://sandbox.interswitchng.com/webpay/api/v1/gettransaction.xml

 

Request Parameters

Request Body ParameterDescriptionFormat
productidMerchant Product Identifier on WebPAY. Same used in Payment legNumeric
amountOriginal transaction reference sent in the original request  (transaction reference you generated for this Numeric
transactionreferenceOriginal amount sent in the transaction, in lower denomination

i.e kobo value. Same value sent in 2.4 above
Alphanumeric

 

Security Parameters

Request Body ParameterDescriptionFormat
hashSHA512 hash of productid, transactionreference and your MAC key . same way you computed your hash in 2.3 above but different parameters this time .This should be sent in the header of the request as Hash

NOTE: – The value of the hash is passed in the header of the GET request as Hash

 

Request Submission

The amount, transaction reference and product id are sent in a HTTP GET request to the service URL with the calculated hash in the header of the request.

Request String:-

GET: https://sandbox.interswitchng.com/webpay/api/v1/gettransaction.json?productId=6204&transactionreference=001211343476456&amount=304500

Headers:-

Connection: Keep-Alive

Host: sandbox.interswitchng.com

Hash:

7CB3D3F18FD14DA47ADE05DB3F2E7B7DA506E8E6063ED6644441088D5FA9BC9F8C2E72407ED58469962BD78A8C4279CD71EDC8A8FB853992C19ED0F895D15491

Find below a sample POSTMan screen grab showing request and response structure. (click image to expand)

 

 

 

 

Was this article helpful to you? Yes No

How can we help?