Resolving Bank Name
Learn how to resolve the name on a generated bank account https://developers.marasoftpay.live/resolvebank
API
1. Post Data to API
To begin, you'll need the following information in json format. Encryption key ( enc_key ), Bank Code (bank_code) and Account Number (account_number).
Make a
POST
request to https://developers.marasoftpay.live/resolvebank
from your server.
Copied
0 secs ago
JSON Sample Copied !!!.
Param | Required? | Description |
---|---|---|
enc_key | yes | Your encryption key from MarasoftPay. Get it from your dashboard |
bank_code | Yes | Bank code of the account to be resolved |
account_number | Yes | Account number to be resolved |
2. Url Response
Below is what your response should look like.
{ "status":true, "data" : { "account_name": "ADEKUNLE DAVID ADEYEYE", "account_number": "0230926956" } }
3. Code Examples
<?php $enc_key = "your encryption key"; $account_number = $_POST['account_number']; $bank_code = $_POST['bank_code']; $url = "https://developers.marasoftpay.live/resolvebank"; $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 = "enc_key=$enc_key&account_number=$account_number&bank_code=$bank_code"; curl_setopt($curl,CURLOPT_POSTFIELDS,$data); echo $resp = curl_exec($curl); curl_close($curl); ?>
router.get("/generate-dynamic-account", (req,res) => { const enc_key = "your encryption key"; const account_number = "account numbert"; const bank_code = "bank code"; const data = { enc_key, account_number, bank_code }; const url = "https://developers.marasoftpay.live/resolvebank"; axios .post(url,data) .then((response) => { console.log(response); }) .catch((error)=>{ console.log(error); }) })
If you need any technical assistance during the course of your integration, you can reach out to us on support@marasoftpay.com