Repay via M-Pesa

Repay via M-Pesa launches an STK (SIM Toolkit) push prompting the borrower's phone to authorise a repayment directly from their M-Pesa wallet. The customer approves with their own PIN on their handset; the institution never collects the PIN, and on callback the receipt is posted and allocated to the loan automatically.

Repay via M-Pesa
Repay via M-Pesa — live screen from the BridgeERP MFI Suite.

Workflow

  1. Open the wizard and select the loan to be repaid.
  2. Confirm the borrower's M-Pesa phone number and the amount.
  3. Send the STK push request to the customer's phone.
  4. Ask the member to authorise the prompt with their M-Pesa PIN on their device.
  5. Confirm the callback posts the repayment and updates the schedule.

Fields reference

Every field on this screen, drawn from the live data model.

FieldTypeRequiredDescription
Loan
loan_id
Link → mfi.loanYesLoan
Amount
amount
MoneyYesAmount
Mobile Number
phone
TextYesMobile Number
Member
member_id
Link → mfi.memberMember
Currency
currency_id
Link → res.currencyCurrency
Reference
reference
TextReference
Checkout Request ID
checkout_request_id
TextCheckout Request ID
Merchant Request ID
merchant_request_id
TextMerchant Request ID
State
state
Choice: Draft, Requested, FailedState
Response
response_message
Long textResponse

Actions & buttons

Buttons available on this screen and what they do:

  • Send STK Push

Status lifecycle

Records on this screen move through these statuses:

Draft → Requested → Failed

Notes & rules

  • Model: mfi.mpesa.repay.stk.wizard.
  • STK push: customer authorises on their own handset; PIN never collected merchant-side.
  • Callback auto-posts an mfi.loan.repayment.
  • Repayment channel: M-Pesa.

Technical model: mfi.mpesa.repay.stk.wizard · Record: M-Pesa STK Push — Loan Repayment

Was this page helpful?