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
Security Parameters
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=6207&transactionreference=001211343476456&amount=304500
Headers:-
Connection: Keep-Alive
Host: sandbox.interswitchng.com
Hash:
2F398AF4D166F7F80225C127F47BDEEB8A4509DCD420F3E04197E7ADA3B29ACD34A11FD966F6F26E741108A86A4BB89D9357BD71F54093599FEB415F8CAC9C76
Find below a sample POSTMan screen grab showing request and response structure. (click image to expand)