This API enables Business to Customer (B2C) transactions between a company and customers who are the end-users of its products or services. Use of this API requires a valid and verified B2C M-Pesa Short code.
B2C Resource URLPOST https://sandbox.safaricom.co.ke/mpesa/b2c/v1/paymentrequest
B2C Query Parameters
Parameter
Description
InitiatorName
This is the credential/username used to authenticate the transaction request.
SecurityCredential
Base64 encoded string of the B2C short code and password, which is encrypted using M-Pesa public key and validates the transaction on M-Pesa Core system.
CommandID
Unique command for each transaction type e.g. SalaryPayment, BusinessPayment, PromotionPayment
Amount
The amount being transacted
PartyA
Organization’s shortcode initiating the transaction.
PartyB
Phone number receiving the transaction
Remarks
Comments that are sent along with the transaction.
QueueTimeOutURL
The timeout end-point that receives a timeout response.
ResultURL
The end-point that receives the response of the transaction
This API enables Business to Customer (B2C) transactions between a company and customers who are the end-users of its products or services. Use of this API requires a valid and verified B2C M-Pesa Short code. B2C Resource URL
POST https://sandbox.safaricom.co.ke/mpesa/b2c/v1/paymentrequest
B2C Query Parameters
Checkout the documentation -----HERE-----