Most Kenyan members repay by M-Pesa. This kit turns each confirmed payment into a posted repayment with no manual entry at the branch, and uses the M-Pesa confirmation code twice — as the receipt on the member's statement and as the client_ref so a callback that arrives twice never posts twice.
How it works
- 1Set up an M-Pesa payment type in Zung
- 2Connect your Paybill or Till
- 3Match each payment to a member's loan by account number
- 4Post the repayment with the M-Pesa code as receipt and client_ref
- 5Send the member an SMS receipt
API pages this kit uses
/payment-types
List payment channels
Active payment types (cash, M-Pesa, bank, cheque). Use the id as payment_type_id.
/loans/{id}/repayment
Updated Record a repayment
Posts a repayment and allocates it to penalties, fees, interest and principal per the product's rules.
Recording M-Pesa repayments
Map M-Pesa confirmations to repayments using payment types and receipt codes.