Campus bursary
The campus bursar's screens for accounts, recording and verifying payments, raising term fees, defaulters, payment items, the SchoolPay inbox and transactions.
Every screen lives under /staff-hub/campus/$campusId/bursary and needs Feature.BURSARY. A locked viewing year hides or disables buttons, and the API refuses the write too. Gateway settlement is on Payment item and transaction operations; fee fields are on Payment items.
| Screen | Needs | API |
|---|---|---|
| Accounts | list on ledger | listLedgerAccountBalances |
| One account | read on ledger | getLedgerAccount, getLedgerStatement |
| Record payment | create on ledger | recordLedgerPayment |
| Verify or reject | approve on ledger | verifyLedgerPayment, .../reject |
| Raise fees | list on payment_item and ledger (raising needs create on both) | previewTermBilling, raiseTermFees |
| Defaulters | list on ledger and payment_item | listLedgerDefaulters |
| Payment items | list on payment_item | The payment-item routes |
| SchoolPay inbox | create on ledger | GET /ledger/school-pay/inbox |
| Transactions | list on transaction | listTransactions |
Accounts
Tabs for Students, Guardians, Staff and Guests (guests are school-wide). Each row shows:
| Column | Means |
|---|---|
| Reference | Students: enrolment number, else student id, else access code. Staff: staff id, else access code. Guardians and guests: access code |
| Balance | Owed minus credit. Negative when credit is larger |
| Credit | The unallocated part of success payments |
| Overdue | Outstanding on open charges past their due time, in red when above zero |
A payment waiting for verification is not success, so it changes none of these. An account with no ledger rows shows zeros.
One account shows Balance, Credit and Overdue for the viewing year's statement, with Charges and Transactions tabs for those who can list them. Actions (create on ledger) offers Add charge and Record payment.
Recording a payment
Enter it. Amount, method (Cash, Bank deposit or Mobile money), a date not after today, an optional reference, and optional evidence. Put any part of it on open charges; the rest is "Left as credit".
Upload evidence, if any, through POST /storage/upload as a document: PNG, JPEG, WebP or PDF, up to 10 MB. The file picker accepts more types than the API does.
Record (recordLedgerPayment). Each line must be an open charge on this account with that much still outstanding, and the lines can't exceed the amount. The payer name is always the account holder.
Settle or wait. With the school's paymentsMakerChecker off, the payment and its allocations are written together. With it on, the payment waits at pending_verification and nothing is allocated.
Verifying needs approve on ledger, and someone other than the person who recorded it. It works on pending_verification, or a manual payment stuck at pending. Verify settles with the stored allocations. Reject (a 3 to 500 character reason) marks it cancelled and allocates nothing.
Raising fees
Pick a term to preview each per-term item, its amount, how many students and the due date. Raise fees needs create on both ledger and payment_item for the campus, and is disabled for a locked year, while running, and after one success. Success offers View defaulters.
Defaulters
Students with an open, past-due charge that still has something outstanding (amount minus waived minus allocations), filterable by term and class, grouped by class. Export CSV downloads the rows on screen.
The student must have an active enrolment on this campus in the current year. So a student who has left or moved campus drops off, even with an old charge open. Staff, guardians and guests never appear.
Payment items
The viewing year's items for the school or this campus. A locked year hides Create item and disables edit, activate and delete. Deactivate and activate send status inactive or active. Deleting keeps existing transactions.
SchoolPay inbox
Pay-code payments SchoolPay sent that no student has claimed yet. Filter Unmatched (default), Ignored or Matched. While a row is unmatched it offers Assign to student and Ignore (with a reason). Both are on SchoolPay inbound.
Transactions
Payments started through this campus. Search, a status filter (Pending, Success, Failed, Cancelled, Refunded, Refund pending) and a date range. A row opens the transaction panel. A pending SchoolPay payment with a gateway reference shows Check status, which asks the provider once:
| Result | Toast |
|---|---|
| Paid | "Payment received" |
| Not yet | "Not received yet. If you have just paid, wait a minute and try again." |
| Failed | "Could not check this payment" |
Payment item and transaction operations
The bursary routes that define a fee, start a payment and take the provider callback, what happens when the money is posted, and how the Hub shows an account.
Gateways
What a payment gateway is, the provider contract every one implements, and how to register a new one.