Payments

After this course you can explain how money moves through every rail a Nigerian fintech touches, build a ledger and a wallet that never lose a kobo, reconcile against providers and banks, understand the economics and the licences, and design payments for a new African market.

64/64 CHAPTERS7 MODULES~67 H WRITTEN SO FAR
START WITH How money moves: accounts, rails, settlement and who sits in the middle ▸
LAB STACK

labs/finance: one fictional Lagos wallet company's books (Owoleaf), generated from a seed in standard-library Python with no Docker and no packages. CSV and SQLite in integer kobo, a bank statement with planted breaks and an answer key, a mock payment provider with signed webhooks and a mock NIP-style instant-payment switch, both with failure injection. Later modules extend the generator and the mocks.

SHOW UP TO

BEFORE YOU START

This course assumes you can already do the following. Each line says where ATLAS teaches it.

MODULE 1

Foundations

BEGINNER 7/7 WRITTEN

Accounts, rails and settlement; Nigeria's rails; a card payment end to end; money in software; double entry; and what AI does in payments today. You finish by building a double-entry ledger for a wallet.

  1. 01 How money moves: accounts, rails, settlement and who sits in the middle A payment is a message and a change of balances, and they do not happen at the same moment. Treat the message as the money and you show customers cash that has not arrived 40 MIN
  2. 02 Nigeria's rails: NIP, NEFT, cards, USSD, mobile money, PSBs A rail is the road the money travels, and a channel is the door you walk through to reach it. Confuse the two and you reconcile the wrong thing, or promise a customer a speed the rail does not give 45 MIN
  3. 03 A card payment end to end: issuer, acquirer, scheme, processor Approval is a promise, not money. Between the customer's tap and your bank credit sit four parties, four stages and one day 45 MIN
  4. 04 Money in software: minor units, rounding, currencies A float cannot hold ₦0.10, a percentage has to land on a whole kobo, and a split has to add back to the total. Decide each rule once, write it down, and test it against real data 45 MIN
  5. 05 Double-entry bookkeeping for engineers A balance column is a number nobody can explain. Store every movement as debits and credits that sum to zero, derive the balance, and the books can check themselves 45 MIN
  6. 06 AI in payments today: fraud scores, smart routing and support botsAI A fraud rule is a model with one feature. Count what it flags against everyone it could have flagged, and the suspects turn out to be your best merchants 45 MIN
  7. 07 Project: a double-entry ledger for a walletPROJECT Build the ledger yourself: a posting function that refuses what must never be written, a replay of 83,887 attempts, and every wallet balance matching to the kobo 120 MIN
MODULE 2

Building payments

WORKING 11/11 WRITTEN

Integrating a provider, idempotency, payment states and refunds, reconciliation, settlement and payouts, wallet rules, transfers and virtual accounts, and LLMs in payments operations. Ends with a wallet that survives injected failures and reconciles every day.

  1. 08 Integrating a payment provider: charges, verification, webhooks The provider knows whether the money arrived. Your job is to ask it, listen to it, and never take anyone else's word for it 50 MIN
  2. 09 Idempotency and moving money exactly once A timeout means unknown, not failed. Retry without a key and you pay twice; retry with one and the same request can run a hundred times and move money once 55 MIN
  3. 10 Payment states, failures, reversals and refunds A payment is never 'done' until you know which of its few states it is in. Pending is not failed, successful can still flip, and a refund is a new payment going the other way 60 MIN
  4. 11 Reconciliation: ledger against provider against bank statement Three records of one pot of money never agree by themselves. Match them line by line, explain every gap in one of four ways, and post the fix as new entries 60 MIN
  5. 12 Settlement and payouts: timing, float, settlement accounts A payout spends cash now against money that arrives later. Date every balance, measure the gap, and fund it with your own money 55 MIN
  6. 13 Wallets and stored value: design and regulation A wallet balance is a promise the company owes. Limits decide how big the promise can get, and safeguarding decides whether the cash is there when customers ask for it 50 MIN
  7. 14 Transfers and virtual accounts A transfer is a push you cannot take back, and a virtual account is a number that tells you who paid. Both end in a message you must treat as a claim, not as money 55 MIN
  8. 15 LLMs in payments operations: reconciliation exceptions, dispute evidence and the controls around themAI Matching is arithmetic, so the model gets only what is left over. Score it against the answer key before you trust it, and build the queue that stops its confident mistakes from reaching the ledger 60 MIN
  9. 16 Agent banking and POS: terminals, agents, cash in and cash out A shop becomes a bank branch with two tills: a drawer of cash and a wallet of e-value. They run out in opposite directions, and one timed-out cash-out can leave them disagreeing 55 MIN
  10. 17 Direct debit and mandates A pull payment needs permission first. Get the mandate, the cap and the retry rule right, and the bank's refusal codes tell you what to do next; get them wrong and you collect twice or never 50 MIN
  11. 18 Project: a wallet with funding, transfers, refunds and daily reconciliationPROJECT Build the wallet that survives lost responses, repeated webhooks and timed-out payouts, then prove it with a reconciliation that ends at zero unexplained breaks 210 MIN
MODULE 3

Risk and economics

SENIOR 11/11 WRITTEN

Disputes and chargebacks, interchange and pricing, cross-border payments, tokenisation and recurring billing, a ledger at scale, payments incidents and machine-learning fraud scoring. Ends with a reconciliation engine that finds every planted break.

  1. 19 Disputes, chargebacks and refund abuse A chargeback takes the money back before you have said a word, arrives weeks after the sale, and counts against you whether you win or lose. Measure the ratio, post every stage once, and answer only with evidence you can stand behind 60 MIN
  2. 20 Interchange, MDR, scheme fees and pricing A card payment has one price for the merchant and four parties sharing it. Find the amounts where your fee stops rising but your cost does not, and price for them before a regulator's cap or a chargeback does it for you 55 MIN
  3. 21 Cross-border payments: correspondent banks, FX, remittances, PAPSS A £200 transfer is three currencies, two conversions and a bank in the middle that takes a fee. Book each leg, measure the cost the way the World Bank does, and find the exposure while the money is in flight 55 MIN
  4. 22 Card tokenisation, card-on-file and recurring payments A saved card is a standing permission with no one in the room. Keep the token and not the number, tell a soft decline from a hard one, and measure what each retry earns before you pay for it 55 MIN
  5. 23 A ledger at scale: hot accounts, balances, sharding Two accounts take nearly half the entries and most of the transactions. A balance row on either one turns eight threads into a queue; append the entry, derive the balance, or split the account 55 MIN
  6. 24 When the money is wrong: payments incidents A double payment raises no error. You find it in the money, size it in naira, stop it before you fix it, book it honestly and write down what the system let happen 90 MIN
  7. 25 Machine-learning fraud scoring at authorisation: features, latency budgets and false declinesAI A fraud model is graded on labels that arrive late and miss some frauds. Split by time, price both mistakes, and measure who gets declined before the bank's customers do 75 MIN
  8. 26 Payment messages: ISO 8583 and ISO 20022 Every card authorisation and bank transfer is a message two machines must read the same way. Build one of each from Owoleaf's books, decode it, and prove its amounts against the ledger 55 MIN
  9. 27 Authenticating the payer: 3-D Secure, OTP and biometrics A card number proves nothing about who holds the card. Let the issuer ask for proof only when the payment looks risky, and know what each kind of proof can and cannot defend against 55 MIN
  10. 28 Stablecoins for cross-border payments A dollar token can shorten a cedi-to-naira payment and move its costs somewhere else. Price both routes in integer minor units, post them in a multi-currency ledger, and break the token route on purpose 60 MIN
  11. 29 Project: a reconciliation engine that finds every planted breakPROJECT Grow the module 2 matcher into an engine that places every difference in a named kind or stops, closes the balance at any month end, checks the outside records, and scores itself on every seed and scale 120 MIN
MODULE 4

Payments businesses

STAFF 7/7 WRITTEN

The Nigerian licences and what each allows, building or partnering for acquiring, processing and switching, routing across providers, other African markets, open banking, PCI DSS scope, and agentic payments.

  1. 30 Licences in Nigeria and what each one allows A licence is a list of activities with a capital floor under each. Read what the money does, who holds it and who connects to the rails, then see what ₦51 million of shareholders' funds covers: 2.6% of the one that holds wallets 50 MIN
  2. 31 Acquirer, processor or switch: build or partner Owning a connection turns a fee per payment into a fixed cost per year. Find the volume where the two cross, the inputs that move it, and the year-and-a-half in which the own path costs money before it saves any 55 MIN
  3. 32 Routing across providers to raise success rates A second provider earns its keep when the first one has a bad hour, and costs you a double charge if you fall back on a guess. Classify every failure before you route, and measure the uplift against its noise 55 MIN
  4. 33 Other African markets: Kenya, Ghana, South Africa, Egypt Each market has a licence gate, a rail, a wallet habit and an FX rule, and each one changes your unit economics in a different place. Build the matrix from the regulators' own documents, say what you could not confirm, then run the numbers and find the assumption that decides 55 MIN
  5. 34 Open banking: the CBN framework, with UK and Brazil compared A lender wants ninety days of one customer's transactions. Give it a token that names the customer, the fields, the purpose and an end date, refuse everything else, and log every call, refused or not 60 MIN
  6. 35 PCI DSS and keeping card data out of scope Every system that sees a card number joins the audit. Scan for where the numbers already are, draw the flows, then move the card to where your servers never receive it 60 MIN
  7. 36 Agentic payments: AI agents that pay, mandates, tokens and liabilityAI An agent that pays reads text written by strangers. Put the limits where the agent cannot argue with them: a mandate checked on the server, in front of the provider, with its id on every ledger row 60 MIN
MODULE 5

Frontier and judgment

PRINCIPAL 6/6 WRITTEN

The history of payments, instant payment systems compared, CBDCs and the eNaira, ledger design research, liability when an AI moves money, and what not to build.

  1. 37 A history of payments: clearing houses to instant payments Every payment system answers one question: when does the money move, and who is owed in the meantime? Settle 55,832 NIP transfers both ways and the answer costs 35% of the gross value, or 7% with one counterparty, in exchange for credit risk 55 MIN
  2. 38 Instant payment systems compared: NIP, UPI, Pix, FedNow Four fast-payment systems, one table. Write down who runs each, how it settles and what it costs, date every figure, and see why a per-head volume ranking is the least safe row in it 55 MIN
  3. 39 CBDCs and what the eNaira showed A central bank digital currency is a claim on the central bank, held through intermediaries. Model one in a copy of the ledger, size it at the IMF's adoption rates (0.012% of a wallet company's weekly flows), and see why the limits were not what held it back 55 MIN
  4. 40 Ledger design: TigerBeetle, Square's Books and the research A ledger database fixes the rules you would otherwise write yourself: ids chosen by the client, balances that cannot go below zero, holds that expire. Build them over SQLite, replay 79,827 transactions and match every balance 60 MIN
  5. 41 Who is liable when an AI moves money: authorisation, consent and the rules not yet writtenAI The loss rules for payments were written for a person who taps pay. Run three payments from an agent's logs through them, and the list of questions no rule answers is the finding 60 MIN
  6. 42 What not to build A product can bring most of the fees and carry all of the risk. Price each one after its risk and its licence, put three questions to anything you might start, and write the memo so that every figure traces to code 80 MIN
MODULE 6

Banks and the switch

SENIOR 15/15 WRITTEN

The other side of an instant transfer: account numbers, the sending and receiving banks, debited but not credited, direct and sponsored access, interbank settlement, batch and high-value payments, fraud between banks, what a transfer earns, and the switch: inside it, its settlement, running it and when it goes down.

  1. 43 Account numbers and identifiers: NUBAN, bank codes, BVN, NIN and phone numbers Four different numbers name a bank account, a bank, a person and a phone, and most of them are 10 or 11 digits long. Learn what each one can prove, and what a check digit can stop before the network is called 50 MIN
  2. 44 The sending bank's side of a NIP transfer A sending bank takes the customer's money before it knows the receiver has it. The suspense account holds that gap: money that is the customer's no longer and the receiver's not yet 55 MIN
  3. 45 The receiving bank's side: crediting, refusing and frozen accounts A receiving bank is handed an instruction by a switch and has seconds to answer. Credit it, refuse it, or stay silent and strand a stranger's customer. Know which accounts may take money, what the levy does to each credit, and how a miss shows up 55 MIN
  4. 46 Debited but not credited: timeouts, status queries and reversals between banks A timeout is the sending bank's problem and nobody else's: the customer is already debited, the switch has stopped waiting, and the receiver may have paid. Ask before you reverse 55 MIN
  5. 47 Direct or sponsored: how an institution joins NIP Joining an instant-payment network is not one decision but two: who connects to the switch, and whose money settles the day. A sponsored institution gets the connection and hands the settlement to a bank that answers for it 50 MIN
  6. 48 How banks settle with each other: sessions, net positions, prefunding and collateral The customer is credited in seconds and the banks pay each other later, net. Between the two sits a promise, and a limit on how big that promise may grow. Reach the limit at sixteen minutes past noon and the payments stop 55 MIN
  7. 49 Batch and high-value payments: salary files, NEFT and RTGS A salary file is one instruction with thousands of lines and a cut-off. A high-value payment is one line, settled alone. Send the first at 12:20 on a pay-day Friday and staff are paid on Monday; send the second without the money and it waits in a queue 50 MIN
  8. 50 Fraud between banks: mule accounts, recalls and how fast money moves Instant payments move a victim's money through four or five banks in less time than it takes to notice. The bank that gets the report is nearly always the one holding the least 45 MIN
  9. 51 What a transfer earns and costs a bank A customer fee is not a margin. Between the fee and the bank's income stand the switch's charge, the telco's, the government's share and the transfers that fail, and on a small transfer through a costly channel nothing is left 50 MIN
  10. 52 Inside a switch: routing, timeouts, PIN translation and stand-in A switch holds no customer money and still decides how long every sender waits. Learn what it routes, what it times out, what it translates and what it may answer for a bank that is down, and why one slow bank is a problem for everyone who pays it 60 MIN
  11. 53 Clearing and settlement at the switch: files, netting and settlement risk A settlement file that nets to zero is arithmetic, not safety. Build one, roll sponsored participants into their sponsor, then make one bank unable to pay and see who is out of pocket 55 MIN
  12. 54 Running a switch: uptime, success rates per bank and connecting to other switches A switch sits between every sender and every receiver, so every failure lands on its dashboard and the question is whose it is. Count success by the bank that answered, not by the network, and page the switch only when many banks fail together 50 MIN
  13. 55 When a bank or a switch goes down A bank that is down refuses a transfer before the money moves. A switch that is slow leaves it in doubt. Tell the two apart, say pending and not failed, and reconcile every timeout afterwards 85 MIN
  14. 56 AI on the rails: success-rate anomalies, mule scoring and the human controlsAI A model that watches the network is graded on what it never raised an alert for. Start from the threshold an operator would write, count the alerts the model adds, and decide who may act on its word 60 MIN
  15. 57 Project: a sending bank, a switch and a receiving bank, settled and reconciledPROJECT Build the three sides of an instant transfer as small services, replay one generated day of the week through them with its timeouts, requeries and settlement sessions, and reconcile every bank's log against the switch 150 MIN
MODULE 7

PSBs, mobile money and the telco

STAFF 7/7 WRITTEN

Payment service banks and mobile money operators: what each licence allows, trust accounts and float, USSD and who pays for the session, building a mass-market wallet, the central bank as overseer, failed-transfer complaints, and a PSB's day closed against its settlement account.

  1. 58 Payment service banks: what the licence allows and forbids A payment service bank holds deposits and moves money, and may not lend it. Read one week of its ledger and the licence turns into arithmetic: where the deposits sit, what the fees do to them, and why 'at the close' is the wrong time to test a ratio 55 MIN
  2. 59 Mobile money operators: the licence, trust accounts, float and agents A mobile money operator issues a promise and keeps the cash behind it in a bank. The whole business is one test, run every day: is the cash at least the promises? In the lab's week it fails once, by ₦2,300,000, on a Thursday 55 MIN
  3. 60 USSD: the telco, the bank and who pays for the session A USSD session is billed for the time it was open, whether or not the transfer happens. In the lab's week a fifth of sessions fail and still cost a quarter of the bill, so the price of a completed transfer is the whole bill divided by the sessions that finished 55 MIN
  4. 61 Building a PSB or MMO product: KYC tiers, USSD and wallets at mass-market scale Half the customers sit on the lowest tier, so the lowest tier is the product. Its limits, the channel that signs people up and the first resource to run out decide whether a launch works 55 MIN
  5. 62 The central bank as overseer: switching licences and payment-system oversight A bank is supervised for its own safety. A switch is overseen because everyone else's safety runs through it. Run an oversight review's checks against one week and see which findings a switch's own tables can show: 3 of 12 55 MIN
  6. 63 Failed-transfer complaints: the customer's rights and AI triageAI A customer says 'debited, no credit, no refund' and the words are the same whether the money failed, arrived or was refunded twice. The logs decide which. A model may read the message and draft the reply; code checks it and a person signs 60 MIN
  7. 64 Project: a PSB's day, closed against its settlement accountPROJECT Replay a payment service bank's week one day at a time, tie its wallets to its settlement account through the switch, and find the two postings a balanced day hides 120 MIN