Commerce Mpesa

Component ID

2834227

Component name

Commerce Mpesa

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Add support for direct mpesa transactions


Dependencies

Drupal Commerce

Configuration

The configuration options for this module follows the standard procedure for the Drupal Commerce payment modules.

Commerce Mpesa Config

The following options are available;

Kopokopo Secret: The api secret from Kopokopo. This is available from the API settings on kopokopo.
Paybill Number: The paybill/till number that is receiving the payments
Mpesa Provider: At the moment only till numbers obtained from Kopokopo are supported

Kopokopo Configuration
Some config changes will need to be made on the Kopokopo API.Kopokopo needs to be aware of the URL that it will send data to. This module relies on the PUSH api provided by Kopokopo.

On your kopokopo account you need to get to the 'Api settings' page.

We only need to provide the callback url and leave the rest as is. Your callback url should be in the pattern of 'your-domain.com/mpesa/callback'

That's it,you are ready to receive payments.