Verify a payment
While webhooks are available to notify you of changing transaction status, we also allow you to manually check the status of a transaction using our verification API.
How to check payments
To check the status of a transaction, send a GET request to the verification URL from your server using your transaction reference.
Info
The request url is: https://apis.chipdeals.me/momo/status/{reference}
You need to replace the {reference}
part by the payment reference
In the following example, we are checking a payment whose reference is
dd1e2d17-5c21-4964-b58d-198fd2aac150
. The transaction
property contains the information of the payment you are trying to verify.
- HTTP
- Curl
- NodeJs
- Laravel
- PHP
GET https://apis.chipdeals.me/momo/status/dd1e2d17-5c21-4964-b58d-198fd2aac150?apikey=test_FOdigzgSopV8GZggZa89 HTTP/1.1
curl --request GET 'https://apis.chipdeals.me/momo/status/dd1e2d17-5c21-4964-b58d-198fd2aac150?apikey=test_FOdigzgSopV8GZggZa89'
const momo = require("@chipdeals/momo-api");momo.setApiKey("test_FOdigzgSopV8GZggZa89");momo.status(reference).then((transactionData) => console.log(transactionData));
<?php$momo = new \Chipdeals\MomoApi\Momo();$momo->setApiKey("test_FOdigzgSopV8GZggZa89");$reference = "ba32a171-cbea-45fd-8848-ac5b77580be3"$transaction = $momo->getStatus($reference);print_r($transaction->getArray());
<?phprequire_once("path/to/chipdeals-mobile-money-api.php");$momo = new Momo();$momo->setApiKey("test_FOdigzgSopV8GZggZa89");$reference = "ba32a171-cbea-45fd-8848-ac5b77580be3"$transaction = $momo->getStatus($reference);print_r($transaction->getArray());
Sample Response
Json
{
"success": true,
"message": "",
"transaction": {
"reference": "b8f9aeb4-ca07-4438-b9ce-aa975a39d15d",
"senderPhoneNumber": "22951945229",
"senderCountryCode": "BJ",
"senderOperator": "MTN",
"senderFirstName": "Iyam",
"senderLastName": "EVERICH",
"originalCurrency": "XOF",
"currency": "XOF",
"status": "success",
"statusMessage": "Successfully processed transaction",
"statusMessageCode": 200,
"startTimestampInSecond": 1655968250,
"endTimestampInSecond": 1655968350,
"amount": 10,
"originalAmount": 10,
"transactionType": "payment"
}
}