POST: Initiate MPESA STK Push Payment Request
This endpoint enables you to initiate an MPESA STK Push request to a customer number to receive payments to your linked payment channel
Easily initiate an MPESA STK Push request to a customer's phone, facilitating seamless mobile payments. You can link your own Till Number, Pay bill Number or Bank Account. By using this endpoint, you can automate payment requests, streamline the payment process, and easily track transactions through Pay Hero's centralized system. This feature is designed to enhance payment efficiency for businesses and individuals using MPESA services.
API Description
POST
https://backend.payhero.co.ke/api/v2/payments
Headers
Request Body
Sample Code
This represents PHP Curl example of how to make the request, you can implement this in your specific language of choice
Callback URL Response Sample
This represents the JSON that will be sent to your request callback_url, NOTE: it contains the ExternalReference that you provided in the request and CheckoutRequestID that was returned in the request response, you can use those to track and update your payments in your system/app
Last updated