Core concepts
Businesses, wallets, test and live, and how money moves.
Four ideas explain most of Morzepay: everything belongs to a business, money lives in wallets, every business has a test side and a live side, and a payment is only final when the network confirms it.
Everything belongs to a business#
When you sign up, you create a business. Its wallets, payments, invoices, API keys and team all belong to it. You can belong to more than one business (your own and a client’s, say) and switch between them in the dashboard. Businesses never share money, data or keys.
Each person in a business has a role: Owner, Admin, Developer or Viewer. See Team and roles.
Money lives in wallets#
Every payment you take lands in a wallet, and every payout or transfer comes out of one. A wallet has a balance, a history and its own settings, such as who pays the collection fee.
| Kind | What it is for |
|---|---|
| Main wallet | Your business’s own money. You create main wallets in the dashboard, for example one per branch. |
| Sub-wallet | A wallet under a main wallet, usually one for each of your customers: a shop on your point-of-sale system, a member of your savings app. You create them with the API. |
Money moves into a wallet through collections and incoming transfers, and out through payouts and outgoing transfers. A wallet can never go below zero: if it can’t cover a payout and its fee, the payout is refused and nothing is sent.
Test and live#
Every business has two separate sides. Switch between them with the Test / Live toggle in the dashboard; Morzepay remembers the one you used last.
| Test | Live | |
|---|---|---|
| Money | Sandbox money. Nothing real moves. | Real money on MTN and Airtel. |
| API keys | mp_test_… | mp_live_… |
| Available | From the moment you sign up | After your business is verified |
| Phone numbers | Any number, plus test numbers that decline or wait | Real numbers only |
Wallets, payments, invoices and keys on one side are invisible to the other. Every object in the API has livemode so you can always tell which side it came from.
A payment is final when the network says so#
Mobile money is not instant: your customer has to see the prompt and enter their PIN, and the network has to confirm. So every payment goes through statuses:
| Status | What it means |
|---|---|
pending | Created, not yet accepted by the network. |
processing | With the network. For a collection, the prompt is on your customer’s phone. |
success | Done. The wallet balance has changed. |
failed | It didn’t happen. Any money held for it is back in the wallet. |
review | The network reported something unexpected, and our team is checking it. No money is credited until it is resolved. |
Never hand over goods just because a customer was sent back to your website. Wait for the success status, from a webhook or by checking the payment.
Amounts are whole shillings#
You send amounts as whole UGX numbers: 5000, not "5000" or 5000.5. Morzepay returns money as text with two decimals, such as "10363.00", because network fees can have fractions. See Fees for what each kind of payment costs.