Direct debit creation and Payment
Direct Debits are payments in M-Pesa that are initiated by the Payee alone without any Payer interaction, but permission must first be granted by the Payer. The granted permission from the Payer to Payee is commonly termed a ‘Mandate’, and M-Pesa must hold details of this Mandate.
The Direct Debit API set allows an organisation to get the initial consent of their customers to create the Mandate that allows the organisation to debit customer's account at an agreed frequency and amount for services rendered. After the initial consent, the debit of the account will not involve any customer interaction.
The Direct Debit feature makes use of the following API calls:
- Create a Direct Debit mandate
- Pay a mandate
The customer is able to view and cancel the Direct Debit mandate from G2 menu accessible via USSD menu or the Smartphone Application.
#
Direct debit CreationUse create_direct_debit() method to create one in Pypesa as shown in the example below;
#
Direct Debit PaymentHere an Pypesa example on how how you can do direct Debit Payment in Pypesa using the direct debit payment();