Concepts · Concepts
Double-entry ledger & postings
Every Naira movement in rafiqPay is recorded as a balanced journal entry where SUM(DEBIT) === SUM(CREDIT).
Worked example: a ₦35,000.00 checkout
Each entry is written in the same database transaction as the change it records. The balances of the accounts it touches are updated in that transaction under a row lock, and an account that would go below zero refuses the entry. Below is the balanced journal posting for a ₦35,000.00 customer payment with a ₦525.00 processing fee (1.5%):
| Ledger Account Code | Debit | Credit |
|---|---|---|
| ASSET:SETTLEMENT_CLEARING:live | ₦35,000.00 | ₦0.00 |
| LIABILITY:MERCHANT_AVAILABLE:live:org_kanzu | ₦0.00 | ₦34,475.00 |
| REVENUE:PROCESSING_FEES:live | ₦0.00 | ₦525.00 |
| Balanced Journal Total | ₦35,000.00 | ₦35,000.00 |