Check Transfer Status

This endpoint is used to verify the status of a transfer carried out on your Marasoft Pay account



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();

Response Sample
[
    {
        "transaction_ref": "ref_jhsdbhdfsi",
        "status" : "success",
        "created_at" : "*********"
    }
]