Make payments
With the Chipdeals sending API, you can make payments to your customers' mobile money accounts.
Test & production environment
We can't stress this enough: please test our APIs against our sandbox environment before pushing them into production. We prefer to avoid service interruptions in production caused by untested code.
The base URL is the same whether in production or in test. Only your API key distinguishes the two environments.
Request URL
https://apis.chipdeals.me/momo/deposit?apikey=<YOUR_API_KEY>
Make a payment with the API
To make a payment, you will need to submit information such as the recipient's mobile money number, amount, etc.
The number, amount and currency are the only mandatory information. You can also pass another parameter which is the URL to contact when the transaction changes state.
Here is the complete list of parameters you can pass to make a payment
Parameterize | Required? | Description |
---|---|---|
recipientPhoneNumber | Yes | Beneficiary's mobile money number. It must respect the E.164 format without the + sign.Format: [country code][local phone number] Ex: 22951010588 |
amount | Yes | Amount to send |
currency | Yes | Currency View supported currencies |
webhookUrl | No | URL that we will contact to notify you of updates on initiated payment. |
Customer information can be retrieved from your database if you have already stored it:
- HTTP
- Curl
- NodeJs
- Laravel
- PHP
POST https://apis.chipdeals.me/momo/deposit?apikey=test_FOdigzgSopV8GZggZa89 HTTP/1.1content-type: application/json{ "recipientPhoneNumber": "22951010588", "amount": 100, "currency": "XOF"}
curl --request POST \'https://apis.chipdeals.me/momo/deposit?apikey=test_FOdigzgSopV8GZggZa89' \--header 'Content-Type: application/json' \--data-raw '{ "recipientPhoneNumber": "22951010588", "amount": 100, "currency": "XOF"}'
const momo = require("@chipdeals/momo-api");momo.setApiKey("test_FOdigzgSopV8GZggZa89");momo .deposit() .amount(500) .currency("XOF") .to("22951010200") .webhook("https://mydomain/payment-status") .create();
$momo = new \Chipdeals\MomoApi\Momo();$momo->setApiKey("test_FOdigzgSopV8GZggZa89");$deposit = $momo ->deposit() ->amount(2000) ->currency("XOF") ->to('22951010200') ->webhook("https://mydomain/payment-status") ->create();print_r($deposit->getArray());
require_once("path/to/chipdeals-mobile-money-api.php");$momo = new Momo();$momo->setApiKey("test_FOdigzgSopV8GZggZa89");$deposit = $momo ->deposit() ->amount(2000) ->currency("XOF") ->to('22951010200') ->webhook("https://mydomain/payment-status") ->create();print_r($deposit->getArray());