Transaction Verification API Integration
GET PAY Transaction Verification API Integration
This is an endpoint that allows you to query the status of a particular transaction using the unique transaction reference attached to the transaction.
You can either use the referenceID you supply during the Transaction or The payment Reference you receive from GET PAY after the Transaction.
AUTHENTICATION
The GET PAY API uses SecretKey for Authentication for Transaction Verification.
Please use your Testkey for Testing on sandbox, after a successful integration, then change to Your SECRETKEY for authentication
GET PAY ENVIRONMENTS
The GET PAY API Endpoint has the Sandbox environment and the Production Environment as seen Below:SANDBOX: https://sandbox.getpaysolutions.com/api/v1/
PRODUCTION: https://getpaysolutions.com/api/v1/
Verify Transaction
Your Transactions on GET PAY can be verified with the endpoint below:Base URL: https://sandbox.getpaysolutions.com/api/v1/merchant-verify/transactions
Body Parameters: as specified in the parameters below:
PARAMETERS | Required/Optional | TYPE | DESCRIPTION |
secretkey | R | String | Your Business secretkey Created at getpaysolutions.com. Use Your Testkey on sandbox |
referenceID | R | String | This is the unique reference you supplied during the Transaction. You can still use the Payment Reference You received from us after the Transaction. |
SAMPLE CODE
$host="https://sandbox.getpaysolutions.com/api/v1/merchant-verify/transactions/?secretkey=Sec23344444444&referenceID=unique111"; //Initialize cURL. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $host); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); $data = curl_exec($ch); //Close the cURL handle. curl_close($ch); $result = json_decode($data);
EXPECTED RESPONSE
{"transaction":{ "Authencation":"68393a01dfa456c8f7ee75faaa6a29d7c8b93b2a7b19bbe6e30af120ce7e1cae9055f9bc7ff8a80d47b2942ca07018b1156b7f6ffc398ecfcf5fbded693abeaf", "status":"Completed", "servicetype":"Credit", "amount":"1000", "charge":"10", "payable":"990", "channel":"API", "balance_Before":"100", "balance_After":"1090", "businessID":"GP554", "businessName":"GET PAY", "merchant":"get@gmail.com, "reserved_Account":"1111111111", "accountRef":"unique111", "referenceID":"unique111", "paymentReference":"unique111", "date":"16 October 2025, 12:26 AM" }}