cURL
curl --request POST \
--url https://test.digitaltermination.com/api/transaction/status \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data transaction_id=22869import requests
url = "https://test.digitaltermination.com/api/transaction/status"
payload = { "transaction_id": "22869" }
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({transaction_id: '22869'})
};
fetch('https://test.digitaltermination.com/api/transaction/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://test.digitaltermination.com/api/transaction/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "transaction_id=22869",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://test.digitaltermination.com/api/transaction/status"
payload := strings.NewReader("transaction_id=22869")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://test.digitaltermination.com/api/transaction/status")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("transaction_id=22869")
.asString();require 'uri'
require 'net/http'
url = URI("https://test.digitaltermination.com/api/transaction/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "transaction_id=22869"
response = http.request(request)
puts response.read_body{
"transaction": {
"id": 27,
"merchant_id": "5",
"type": "Cr",
"medium": "Card",
"reference": "1-2438378-0998",
"zeepay_id": null,
"gateway_id": null,
"amount": 1.01,
"amount_details": {
"cc": 0.02,
"send": 1.01,
"receive": 1
},
"medium_details": null,
"status": "2",
"status_message": "Request Sent, pending processing",
"sender_details": {
"no": null,
"name": "Kwesi Appiah",
"type": 5,
"email": "kwesiappiah@test.com",
"card_number": "12***********7889"
},
"recipient_details": {
"no": 5,
"name": "MS",
"type": 8
},
"reason": null,
"description": "Payment",
"extra": null,
"api": 1,
"callback_url": "https://your-domain.com/webhook/payment-status",
"created_at": "2020-04-14 16:18:31",
"updated_at": "2020-04-14 16:18:31"
},
"type": "Success",
"message": "Transaction Retrieval Successful"
}API Endpoint
Check Transaction Status
Gets the Transaction Status
POST
/
api
/
transaction
/
status
cURL
curl --request POST \
--url https://test.digitaltermination.com/api/transaction/status \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data transaction_id=22869import requests
url = "https://test.digitaltermination.com/api/transaction/status"
payload = { "transaction_id": "22869" }
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({transaction_id: '22869'})
};
fetch('https://test.digitaltermination.com/api/transaction/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://test.digitaltermination.com/api/transaction/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "transaction_id=22869",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://test.digitaltermination.com/api/transaction/status"
payload := strings.NewReader("transaction_id=22869")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://test.digitaltermination.com/api/transaction/status")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("transaction_id=22869")
.asString();require 'uri'
require 'net/http'
url = URI("https://test.digitaltermination.com/api/transaction/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "transaction_id=22869"
response = http.request(request)
puts response.read_body{
"transaction": {
"id": 27,
"merchant_id": "5",
"type": "Cr",
"medium": "Card",
"reference": "1-2438378-0998",
"zeepay_id": null,
"gateway_id": null,
"amount": 1.01,
"amount_details": {
"cc": 0.02,
"send": 1.01,
"receive": 1
},
"medium_details": null,
"status": "2",
"status_message": "Request Sent, pending processing",
"sender_details": {
"no": null,
"name": "Kwesi Appiah",
"type": 5,
"email": "kwesiappiah@test.com",
"card_number": "12***********7889"
},
"recipient_details": {
"no": 5,
"name": "MS",
"type": 8
},
"reason": null,
"description": "Payment",
"extra": null,
"api": 1,
"callback_url": "https://your-domain.com/webhook/payment-status",
"created_at": "2020-04-14 16:18:31",
"updated_at": "2020-04-14 16:18:31"
},
"type": "Success",
"message": "Transaction Retrieval Successful"
}⌘I
