Check Transfer Status
This endpoint is used to verify the status of a transfer carried out on your Marasoft Pay account
Usage
API Endpoint - https://api.marasoftpay.live/checktransfer
Method - POST
Data Type - FORM-DATA
Limit - No Limit
Parameter | Required? | Description |
---|---|---|
enc_key | Yes | Your encryption key from MarasoftPay. Get it from your dashboard |
transaction_ref | Yes | a unique reference code to identify the transaction. |
Code Sample
<?php
$enc_key = "yourencrytionkey****";
$transaction_ref = "***********";
$url = "https://api.marasoftpay.live/checktransfer";
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$headers = array(
"Content-Type: application/x-www-form-urlencoded",
);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
$data ="transaction_ref=***********&enc_key=MSFT_Enc_GXUG6*****************";
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
?>
const https = require('https');
const data = {
'enc_key': '************',
'transaction_ref': '**********'
};
const options = {
hostname: 'https://dashboard.marasoftpay.com',
port: 443,
path: '/api/checktransfer',
method: 'POST',
headers: {
'Content-Type': 'application/text',
'Content-Length': data.length,
},
};
const req = https.request(options, res => {
console.log(`statusCode: ${res.statusCode}`);
res.on('data', d => {
process.stdout.write(d);
});
});
req.on('error', error => {
console.error(error);
});
req.write(data);
req.end();
# importing the requests library
import requests
# defining the api-endpoint
API_ENDPOINT = "https://api.marasoftpay.live/checktransfer"
# data to be sent to api
data = {
'enc_key': ********,
'transaction_ref':'**********'
}
# sending post request and saving response as response object
r = requests.post(url = API_ENDPOINT, data = data)
# extracting response text
pastebin_url = r.text
print("The pastebin URL is:%s"%pastebin_url)
Response Sample
[
{
"transaction_ref": "ref_jhsdbhdfsi",
"status" : "success",
"created_at" : "*********"
}
]