Collect
This endpoint enables you to collect payments from customers - both STK prompt and direct payment to paybill number.
POST {{uri}}/kes/collect
Body Request
name
type
description
amount
integer
Amount to collect
shortcode
string
Customer's phone number
mobile_network
string
Mobile money network i.e Safaricom, or Airtel
callback_url
url
URL to receive payment notification
{
"code": 200,
"message": "Prompt sent",
"data": {
"status": "PENDING",
"transaction_code": "DDM6D",
"message": "Success! Processing payment..."
}
}
Last updated