2.0 KiB
Hi Kwesi,
This is what we agreed on the mse works:
You will work on disbursement confirmation endpoint
-
To sit on the mobile money server
-
Db is on .201 and called malawi_stock_exchange
-
The endpoint to accept our transid,their unique reference id, mobile number, amount, among others in the payload
-
The endpoint to respond back with status of the transaction
-
You should have another endpoint for transaction enquiry
-
This will just refer to the transaction enquiry service for disbursements
-
To accept the transID and unique reference in the payload
-
To return TS of TF to mean transaction successful or transaction failed respectively
-
All MSE projects are found on the mobile money server in this path:
-
Airtel Money: /var/www/payments.click-mobile.com/html/mse/airtelmoney
-
Mpamba: /var/www/payments.click-mobile.com/html/mse/mpamba
-
API - /var/www/payments.click-mobile.com/html/mse/api
-
www.payments.click-mobile.com/api
Would you like to see how to define a global constant for this base URL so you can easily link to images and CSS from your templates?
AIRTEL MONEY DISBURSEMENT REQUEST:
{"country":"MW", "currency":"MWK", "msisdn":"996139030", "amount":50, "transactionID":"mse-6a4e490eec25e"}
RESPONSE:
{"data":{"transaction":{"reference_id":"BD260708.1456.651361","airtel_money_id":"disburse-8SE3NN3VM8-mse-6a4e490eec25e","id":"mse-6a4e490eec25e","status":"TS"}}, "status":{"response_code":"DP00900001001","code":"200","success":true,"result_code":"ESB000010","message":"Business Disbursement Partner transaction of MK 50 has been successfully completed between the sender: 999904070 and receiver: 996139030. Txn ID: BD260708.1456.651361"}}
MPAMBA DISBURSEMENT REQUEST:
{ "transactionId": "TXN202607101022jy3", "amount": 50, "msisdn": "265881161942", "description": "CEDAR PAY" }
RESPONSE:
{"message":"Completed successfully","errors":[],"trace":[],"data":{"transaction_id":"TXN202607101022jy3","receipt_number":"DGA3321MW1H"}}