The three-way match
Every M-Pesa payment that lands in your paybill or till number has three faces: the mobile-money statement line, the invoice you raised, and the subscriber balance that moves. When all three agree, the payment is done. When one drifts, the dispute starts.
The rule is simple: the statement amount, the invoice amount, and the balance delta must be identical. If the customer paid 3,500 but the invoice was 3,400, the extra 100 is not a payment — it is an open item until the customer tells you what it is for.