BEGINNERCHAPTER 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 MINPAYMENTSUPDATED 2026-11-14
PREDICT

A customer's card is approved for ₦18,500 on Monday at 14:00. In the lab's model the provider keeps a 1% fee and settles the day after capture. What does the merchant's bank account show?

A card payment looks like one event. It is not. It is a conversation that takes about a second, followed by a bookkeeping process that takes about a day. Most bugs in card integrations come from treating the second as if it were the first: counting approved money as received money.

The lab for this chapter runs on Owoleaf, a fictional Lagos wallet company that lets customers top up their wallets by card. Owoleaf stands where Tallowmere stands in the story: it is the merchant, and a payment provider takes the cards for it. Every fee, limit and timing in the lab is invented and labelled so. The chapter teaches the shape of the flow, and the lab lets you check each piece of it in numbers.

The parties

A card payment needs more than a customer and a shop. The standard arrangement is the four-party model, and it is worth knowing why it has four parties. The customer’s bank and the shop’s bank are different banks, and neither trusts the other with a blank cheque. A shared network with common rules lets any issuing bank deal with any acquiring bank without a contract between each pair. Stearns’s history in the Reading list tells how a shared network of banks, Visa’s, came about.

Party What it does Where it appears in the lab
Cardholder Holds the card and pays A customer such as C0000042
Issuer The bank that issued the card. It decides whether to approve, holds the cardholder’s money, and pays the acquirer Not modelled: the mock’s decline stands in for its decision
Merchant Sells the goods and wants the money Tallowmere in the story; Owoleaf in the data
Acquirer The bank or licensed firm that takes card payments for the merchant and pays the merchant The mock provider acts as one, with its processor
Scheme Runs the network and writes the rules every issuer and acquirer follows. Visa is an example Not modelled
Processor A technical firm that connects the parties and runs the messages, batches and reports for an issuer or an acquirer Inside the mock provider
Payment provider (gateway) The merchant’s front door: an API and a hosted page that take the payment and report on it. Often one company is gateway, processor and acquirer at once mock_provider.py on port 8101

Two lines of that table cause confusion. First, “the acquirer” and “the payment provider” are often the same company in a small merchant’s eyes, but they are different roles, and the rules apply to the role. Second, the scheme does not hold money. It sets rules, moves messages and calculates what each bank owes the others. Banks move the money.

CardholderMerchantAcquirerSchemeIssuer1 pays2 sends3 asks4 asks5 next day: pays5 next day: banks settleSolid lines: seconds, messages only. Dashed lines: about a day later, money moves.

The solid lines are messages and take a second or two. The dashed lines are money and take a day or more. That gap is the subject of the chapter.

Stage 1: authorisation

Authorisation is a question and an answer. The merchant, through its provider, asks the issuer: can this card pay this amount? The issuer checks the card, the balance or credit line, and its own fraud rules, and answers approve or decline, with a reason code. On approval the issuer typically places a hold for that amount on the cardholder’s account. No money has moved. The cardholder’s available balance is lower, but the balance is unchanged.

Two things happen in authorisation that merchants forget about.

The first is that the issuer alone decides, and the merchant seldom learns the full reason. The lab’s decline is the response Insufficient funds on a test card ending 0002. A real decline may be a stolen-card flag, a limit, a failed security check, or a bank outage, and a provider may reduce the reason to a few broad classes on purpose. Your code should treat “declined” as a final state for that attempt and not guess at the cause.

The second is that authorisation can be slow or conditional. The card ending 0003 returns pending with the message Awaiting customer authentication: the issuer wants the cardholder to prove it is them, for example with a one-time password. The charge resolves later to success or failure. Authenticating the payer is a later chapter of this course. Here the point is narrow: a charge has more than two outcomes, and code that reads only success and failure will mishandle the third.

EMV is the standard that the card’s chip and a shop terminal follow when the card is present. EMVCo, the body that maintains the EMV chip specifications, describes contact chip as supporting in-store payments with a reader at the terminal, where the chip validates the card’s authenticity and generates a one-time security code for every transactionas of 2026-11. A web store like Tallowmere’s has no chip in the room. It is a card-not-present payment, and the issuer has less to go on, which is one reason authentication steps exist online.

Stage 2: capture

Capture is the merchant telling its acquirer: take the money that was approved. Some businesses authorise at the order and capture at dispatch, because a pharmacy may find an item out of stock after the customer has paid. Many providers combine the two in a single call, called a charge, and the mock provider does the same. A charge that returns success in the lab has been authorised and captured at once.

The lesson on authorise, capture and refund lets you break the sequence yourself: capture too late, capture more than was authorised, refund more than was captured. Here you need one idea. Until capture, nothing is owed to the merchant. After capture, the merchant has a claim on the acquirer, and a claim is an asset that belongs in the books.

That is the job of the account card_clearing in the lab’s ledger. It means: card money we have captured and the processor has not yet paid. Each successful card funding debits it. A wallet customer’s top-up of ₦22,800 (transaction 9824 in the lab) books three entries, in kobo:

Account Direction Amount (kobo) Why
card_clearing debit 2,280,000 The processor now owes Owoleaf the full ₦22,800
wallet:202 credit 2,245,800 The customer’s wallet balance, a liability, goes up by the amount less the fee
fee_revenue credit 34,200 The customer’s fee: 1.5% of 2,280,000 is 34,200

The debit equals the two credits: 2,245,800 + 34,200 = 2,280,000. The wallet gets ₦22,458.00 and Owoleaf earns ₦342.00 of fee. Note what the entry does not do: it does not touch the bank. Owoleaf’s settlement account at its partner bank has not changed.

Stage 3: clearing

Clearing is the exchange of the details of captured payments between acquirer and issuer, through the scheme, so each side can post them to its own customers and calculate who owes whom. Captured transactions are collected during the day and sent in batches. The issuer turns each approved hold into a debit on the cardholder’s account. The scheme (or its processor) works out what each issuer owes each acquirer, net of interchange and scheme fees. Interchange is the fee the acquirer pays the issuer for each card payment. Its size is set by scheme and regulatory rules that differ by country and card type, and this chapter gives no figures. It and the other fees of a card are the subject of a later chapter in module 3, on pricing.

A merchant seldom sees clearing directly. What it sees is the effect: a payment that was approved on Monday stays “pending settlement” until the batch is paid. This is also where a customer’s dispute begins its life: if the cardholder says they did not make the payment, the issuer can send it back through the scheme as a chargeback. The lesson on chargebacks shows the mechanics, and a chapter in module 3 covers disputes in full.

Stage 4: settlement

Settlement is the movement of money. The issuer’s side pays the acquirer’s side, usually net across many payments, through settlement accounts at a bank or at the central bank. Then the acquirer pays the merchant, normally in one batch for the day, less the merchant’s fees. Only now does the merchant’s bank account change.

In Nigeria the central bank sets rules for this. The CBN’s Guidelines on Operations of Electronic Payment Channels in Nigeria (reference PSMD/31/05/2020, dated 31 May 2020) cover ATM, POS, mobile POS and web acceptance services and replace the 2016 version. Search summaries say they define an acquirer as a bank or other legal person that contracts with merchants to accept payment by electronic token, and that processors must provide daily settlement reports by 8 a.m. on a T+1 basis. A separate 2021 CBN framework covers non-bank acquiringas of 2026-11. T+1 means the transaction day plus one business day. That description rests on search summaries, because the CBN’s site could not be read in this build. The summaries tie T+1 to the processors’ settlement reports. They do not show when a merchant must be paid, so this chapter states no payout deadline for Nigeria. Read the Guidelines themselves, including the web acceptance section, before relying on any of this.

The lab’s model is simple and deliberate. Card money captured on day D is paid on day D+1 at 10:00 as one card_settlement, minus the processor’s fee of 1% of the batch (an invented figure). On 9 March 2026 Owoleaf captured ₦356,758.00 from 36 card fundings. The next morning’s settlement books:

Account Direction Amount (kobo) Why
settlement_bank debit 35,319,042 The cash that reached Owoleaf’s bank account
processing_expense debit 356,758 1% of 35,675,800: the processor’s fee
card_clearing credit 35,675,800 The claim on the processor is cleared

Check it: 35,319,042 + 356,758 = 35,675,800, so the debits equal the credit. And 35,675,800 × 0.01 = 356,758.00, so the fee is exact. The bank statement shows one CARD SETTLEMENT credit for 35,319,042 kobo, ₦353,190.42, with the same reference as the ledger’s settlement transaction.

The same arithmetic is Tallowmere’s Tuesday credit, on a smaller scale. One order of ₦18,500 (1,850,000 kobo) less 1% (18,500 kobo) leaves 1,831,500 kobo. Add the other Monday orders and you get one number. Bimpe’s three questions have the answers: a day, because capture and settlement are separate stages; ₦185, because the provider’s fee came off before the money moved (the fee here is invented, and real fees are set by contract); and one line, because the acquirer pays a batch.

Float: money in the middle

Between capture and settlement the merchant has been promised money and does not have it. This gap is called float, and it has a size. In the lab’s data, card_clearing reaches its peak of ₦2,007,780.00 at 09:59 on 28 May 2026, a minute before that morning’s settlement clears the day before’s captures. That is the most Owoleaf was ever owed by its processor at one time. Tallowmere carries the same gap at its own size. A merchant that pays suppliers faster than it is settled has to fund the float from somewhere. The lesson on settlement float shows it moving, and a later chapter in this course, on settlement and payouts, takes it up.

Where it goes wrong

Name the failures first, because each of them looks like success on the dashboard.

Counting approval as cash. The dashboard says paid and the bank says nothing. Revenue booked on approval will be right on average and wrong on any given day, and wrong for good if a payment is later charged back. Book the claim on the acquirer (card_clearing) at capture, and book cash only at settlement.

Adding up the wrong fee. The column fee_kobo appears on both sides, with different meanings. In the ledger’s transactions, fee_kobo on a card funding is what the customer pays (1.5%, capped at ₦2,000, both invented). At the provider, fee_kobo is what the company pays the provider (1%, also invented). For transaction 9824 the first is 34,200 and the second is 22,800. The difference, 11,400 kobo or ₦114.00, is what Owoleaf keeps on that payment before any other cost.

Adding up fees that were never charged. Declined card fundings still have a fee_kobo in the data: the fee that would have applied. The 400 declined fundings carry 5,782,641 kobo of it, ₦57,826.41, and a sum over all rows overstates revenue by exactly that. Entries tell the truth: a failed attempt has none. The provider does the same in the lab: a declined charge shows a fee_kobo of 18,500 on an amount of 1,850,000.

Retrying a charge whose answer was lost. The card ending 0005 charges the card and then answers with an HTTP 500. A client that retries with a new reference charges the customer twice. This is idempotency, the subject of a chapter in module 2. The point for now is that the charge, not the response, is the fact.

Never reaching the end of the day. On the last day in the data, 29 June 2026, ₦1,654,083.00 was captured and the data stops before the next 10:00. The ledger is still carrying it in card_clearing. Any report of “money we are owed” must say its date, or it will overcount whatever was already paid.

Putting card numbers where they should not be. The mock’s POST /charges takes a card_number so that you can try test cards. A real shop sends the card to its provider through the provider’s own hosted page or fields, so the card number never touches the shop’s servers. The module 4 chapter on PCI DSS covers why. In the lab you use test numbers only, and the habit to build is never to log or store a full card number.

What a clean flow leaves behind

When a card payment goes right, three records agree, and each is held by a different party. The ledger has the entries in card_clearing. The provider has the charge and the settlement report. The bank has one statement line per settlement. Reconciliation, covered in module 2, is the job of checking that those three agree, and this lab runs a first small version of it: provider net equals statement amount on every settlement day. The same three records also let you answer a customer: when was it approved, when was it captured, and when did we receive it.

LAB Charge test cards, trace the money through card_clearing, and match a settlement to the bank statement ~35 MIN
YOU NEEDPython 3.9 or later (standard library only)labs/finance with the data generated (python3 generate.py)Two terminalsNo Docker, no packages

You work in labs/finance. Every step is Python run from that folder against data/finance.sqlite and the mock provider. There is no sqlite3 program in the steps, so the queries run through Python’s sqlite3 module.

1. Start the provider and charge three test cards. In a first terminal, start the mock on its default port:

cd labs/finance
python3 generate.py          # skip if data/finance.sqlite exists
python3 mock_provider.py

In a second terminal, run this script. It charges ₦18,500 (1,850,000 kobo) on cards ending 0001, 0002 and 0003. The key sk_test_owoleaf_mock is the mock’s fixed test key.

cd labs/finance
python3 - <<'PY'
import json, secrets, time, urllib.request, urllib.error

BASE = "http://127.0.0.1:8101"
KEY = {"Authorization": "Bearer sk_test_owoleaf_mock", "Content-Type": "application/json"}

def call(method, path, body=None):
    data = json.dumps(body).encode() if body is not None else None
    req = urllib.request.Request(BASE + path, data=data, headers=KEY, method=method)
    try:
        with urllib.request.urlopen(req) as r:
            return r.status, json.load(r)
    except urllib.error.HTTPError as e:
        return e.code, json.load(e)

def charge(last4, amount_kobo=1_850_000):
    ref = "TALLOW-" + secrets.token_hex(4)
    status, body = call("POST", "/charges", {
        "reference": ref, "amount_kobo": amount_kobo, "customer_ref": "C0000042",
        "card_number": "411111111111" + last4, "metadata": {"order": "1000"}})
    return ref, status, body["charge"]

for last4 in ("0001", "0002", "0003"):
    ref, status, c = charge(last4)
    print(f"card ...{last4}: HTTP {status}, status={c['status']}, response={c['gateway_response']!r}, "
          f"amount={c['amount_kobo']}, fee={c['fee_kobo']}, paid_at={'set' if c['paid_at'] else 'null'}")
    if c["status"] == "pending":
        time.sleep(6)
        _, body = call("GET", "/charges/" + ref)
        c = body["charge"]
        print(f"   6 s later: status={c['status']}, response={c['gateway_response']!r}, paid_at={'set' if c['paid_at'] else 'null'}")
PY
card ...0001: HTTP 200, status=success, response='Approved', amount=1850000, fee=18500, paid_at=set
card ...0002: HTTP 200, status=failed, response='Insufficient funds', amount=1850000, fee=18500, paid_at=null
card ...0003: HTTP 200, status=pending, response='Awaiting customer authentication', amount=1850000, fee=18500, paid_at=null
   6 s later: status=success, response='Approved', paid_at=set

Three outcomes from three cards: approved, declined and pending then approved. The declined charge still shows a fee of 18,500, the fee that would have applied, so the number alone does not say money moved. Each run uses a fresh reference; a reused reference is a 409. The charge’s fee is the provider’s 1% of 1,850,000 kobo.

2. Follow the money through the ledger. This script reads Owoleaf’s books for one card funding, the declined fundings, and the card_clearing account.

python3 - <<'PY'
import datetime as dt
import sqlite3

db = sqlite3.connect("data/finance.sqlite")

def naira(kobo):
    return f"₦{kobo // 100:,}.{kobo % 100:02d}"

print("1. one card funding, three entries")
t = db.execute("""SELECT id, amount_kobo, fee_kobo, created_at FROM transactions
                  WHERE id = 9824 AND kind = 'funding_card'""").fetchone()
print(f"   transaction {t[0]}: amount {t[1]} kobo, fee_kobo {t[2]}, at {t[3]}")
for code, direction, kobo in db.execute("""SELECT a.code, e.direction, e.amount_kobo FROM entries e
        JOIN accounts a ON a.id = e.account_id WHERE e.transaction_id = ? ORDER BY e.id""", (t[0],)):
    print(f"   {direction:<6} {code:<14} {kobo:>9}")

print("2. declined fundings have no entries")
n, fee_failed = db.execute("""SELECT COUNT(*), SUM(fee_kobo) FROM transactions t
    WHERE kind = 'funding_card' AND status = 'failed'
      AND NOT EXISTS (SELECT 1 FROM entries e WHERE e.transaction_id = t.id)""").fetchone()
print(f"   {n} declined fundings, none with entries; their fee_kobo adds up to {fee_failed} kobo ({naira(fee_failed)})")
fee_ok, = db.execute("SELECT SUM(fee_kobo) FROM transactions WHERE kind='funding_card' AND status='succeeded'").fetchone()
fee_ledger, = db.execute("""SELECT SUM(e.amount_kobo) FROM entries e JOIN accounts a ON a.id = e.account_id
    JOIN transactions t ON t.id = e.transaction_id WHERE a.code = 'fee_revenue' AND t.kind = 'funding_card'""").fetchone()
print(f"   fee_kobo on succeeded rows {fee_ok}; fee_revenue entries from card fundings {fee_ledger}")

print("3. card_clearing: each day's debits against the next 10:00 credit")
clr, = db.execute("SELECT id FROM accounts WHERE code = 'card_clearing'").fetchone()
debits, credits = {}, {}
for day, direction, kobo in db.execute("""SELECT substr(posted_at, 1, 10), direction, SUM(amount_kobo)
        FROM entries WHERE account_id = ? GROUP BY 1, 2""", (clr,)):
    (debits if direction == "debit" else credits)[day] = kobo
match = left = 0
for day, kobo in sorted(debits.items()):
    nxt = (dt.date.fromisoformat(day) + dt.timedelta(days=1)).isoformat()
    if credits.get(nxt) == kobo:
        match += 1
    else:
        left += 1
        print(f"   {day}: {naira(kobo)} debited, no matching credit on {nxt}")
print(f"   {len(debits)} days with debits; {match} cleared in full by the next day's credit, {left} not")
print(f"   2026-03-09 debits {debits['2026-03-09']}, 2026-03-10 credit {credits['2026-03-10']}")

print("4. the balance, entry by entry")
bal = peak = 0
peak_at = None
for ts, direction, kobo in db.execute("SELECT posted_at, direction, amount_kobo FROM entries WHERE account_id = ? ORDER BY posted_at, id", (clr,)):
    bal += kobo if direction == "debit" else -kobo
    if bal > peak:
        peak, peak_at = bal, ts
print(f"   peak {naira(peak)} at {peak_at}; balance at the end of the data {naira(bal)}")
PY
1. one card funding, three entries
   transaction 9824: amount 2280000 kobo, fee_kobo 34200, at 2026-03-15T15:12:03+01:00
   debit  card_clearing    2280000
   credit wallet:202       2245800
   credit fee_revenue        34200
2. declined fundings have no entries
   400 declined fundings, none with entries; their fee_kobo adds up to 5782641 kobo (₦57,826.41)
   fee_kobo on succeeded rows 165247321; fee_revenue entries from card fundings 165247321
3. card_clearing: each day's debits against the next 10:00 credit
   2026-06-29: ₦1,654,083.00 debited, no matching credit on 2026-06-30
   175 days with debits; 174 cleared in full by the next day's credit, 1 not
   2026-03-09 debits 35675800, 2026-03-10 credit 35675800
4. the balance, entry by entry
   peak ₦2,007,780.00 at 2026-05-28T09:59:12+01:00; balance at the end of the data ₦1,654,083.00

The three entries are the table from the chapter, and 2,245,800 + 34,200 = 2,280,000. Declined attempts leave no entries, so summing fee_kobo over every row would add ₦57,826.41 that was never earned: the entries and the succeeded rows agree at 165,247,321 kobo, ₦1,652,473.21. Every captured day but the last is cleared, to the kobo, by the next morning’s credit. The last day is not, because the data stops at 29 June. The balance does not sit at zero: at the end of any day it equals that day’s captures, and the 10:00 credit removes the day before’s.

3. Match the provider’s settlement to the bank statement. The provider knows the generated card fundings: GET /charges/{reference} verifies one, and GET /settlements?date= pays out the day before’s captures.

python3 - <<'PY'
import json
import sqlite3
import urllib.request

db = sqlite3.connect("data/finance.sqlite")

def get(path):
    req = urllib.request.Request("http://127.0.0.1:8101" + path,
                                 headers={"Authorization": "Bearer sk_test_owoleaf_mock"})
    with urllib.request.urlopen(req) as r:
        return json.load(r)

print("1. follow transaction 9824 to the provider")
ref, = db.execute("SELECT external_ref FROM transactions WHERE id = 9824").fetchone()
c = get("/charges/" + ref)["charge"]
print(f"   verification: status={c['status']}, amount={c['amount_kobo']}, fee_kobo={c['fee_kobo']}, source={c['source']}")
s = get("/settlements?date=2026-03-16")
print(f"   2026-03-16 settlement lists it: {ref in [x['reference'] for x in s['lines']]} (one of {len(s['lines'])} lines)")

print("2. one settlement against the statement")
print(f"   provider: gross {s['gross_kobo']}, fee {s['fee_kobo']}, refunds {s['refunds_kobo']}, net {s['net_kobo']}")
st = db.execute("""SELECT line, value_date, direction, amount_kobo, narration FROM bank_statement
                   WHERE narration = 'CARD SETTLEMENT' AND value_date = '2026-03-16'""").fetchone()
print(f"   statement line {st[0]}: {st[1]} {st[2]} {st[3]} {st[4]}")

print("3. every settlement day")
stmt = dict(db.execute("SELECT value_date, amount_kobo FROM bank_statement WHERE narration = 'CARD SETTLEMENT'"))
same = sum(1 for day, kobo in stmt.items() if get("/settlements?date=" + day)["net_kobo"] == kobo)
print(f"   {len(stmt)} CARD SETTLEMENT lines; provider net_kobo equals the statement on {same}")
exp, = db.execute("""SELECT SUM(e.amount_kobo) FROM entries e JOIN accounts a ON a.id = e.account_id
                     WHERE a.code = 'processing_expense' AND e.direction = 'debit'""").fetchone()
print(f"   processing_expense debits: {exp} kobo")
PY
1. follow transaction 9824 to the provider
   verification: status=success, amount=2280000, fee_kobo=22800, source=generated_ledger
   2026-03-16 settlement lists it: True (one of 43 lines)
2. one settlement against the statement
   provider: gross 43320200, fee 433202, refunds 0, net 42886998
   statement line 7583: 2026-03-16 CR 42886998 CARD SETTLEMENT
3. every settlement day
   174 CARD SETTLEMENT lines; provider net_kobo equals the statement on 174
   processing_expense debits: 110590267 kobo

Transaction 9824 was captured on Sunday 15 March, so it is paid with the 43 captures of that day on Monday 16 March. The provider’s fee_kobo for it is 22,800 (1% of 2,280,000), not the ledger’s 34,200: two fees, one column name. The batch: 43,320,200 − 433,202 = 42,886,998 kobo, ₦428,869.98, the same amount as statement line 7583. All 174 settlement days agree. The fees paid to the processor over the whole period are ₦1,105,902.67, the processing_expense balance.

Ask for a day the ledger has not settled yet: GET /settlements?date=2026-06-30, with the same key. The provider answers with gross 165,408,300 kobo from 109 captures on 29 June, a fee of 1,654,083 and a net of 163,754,217 kobo, which is ₦1,637,542.17. Now look at the statement: it has no CARD SETTLEMENT line for 30 June, and card_clearing still holds ₦1,654,083.00. Nothing is wrong with either record. The provider has computed a payout that the data never reaches. A reconciliation that compared “everything the provider says” with “everything on the statement” would report a ₦1,637,542.17 break that is only a cut-off. Decide which date range both sides must be limited to before you compare them, and write it into the query.

ARTEFACT Write the 'charged but it did not go through' playbook entry ~40 MIN
YOU PRODUCESupport playbook entry: card charged, order or top-up not completed

Template

# Playbook: <customer says: charged, but order or top-up failed>
Written by <support lead> with <payments engineer> · Approved by <head of operations> · Reviewed <date>
Decision this supports: <what an agent may promise, wait for or escalate>

## When to use this
<The customer's words, and the screen or record that shows it applies.>

## Who has done what
| Party | What it has done by now | What it can show us |
|---|---|---|
| Issuer | <approved and held / declined> | <what the customer sees in their banking app> |
| Acquirer and processor | <captured / not captured> | <settlement report line> |
| Scheme | <carried the messages> | <nothing we can see> |
| Merchant (us) | <order or top-up state> | <ledger entries, charge status> |

## Hold or capture: how to tell
<Which fields to read, in order, and what each answer means.>

## What to tell the customer
- If it is only a hold: <script, and the date or condition the money returns>
- If it was captured and we failed to deliver: <script, and what we do next>
- If it was declined: <script>

## When money returns or settles
<Each case, with who controls the timing, and what we do not know.>

## Escalate when
| Trigger | To whom | Attach |
|---|---|---|

## Do not
<Promises we cannot keep. Things never to ask for, such as a full card number.>

## Open questions
<What we assumed, and who will confirm it.>
WORKED EXAMPLE

At Tallowmere, Bimpe drafts this entry with Tochukwu. At a company of Owoleaf’s size the support lead writes it, a payments engineer checks it, and the head of operations signs it.

Use when: a customer says their card was charged for an ₦18,500 order and the order shows unpaid.

Who has done what. The lab’s three test cards show the outcomes an agent will meet. Card 0001 returns status=success, response='Approved' and paid_at set: the issuer approved and the provider captured in one call. Card 0002 returns status=failed, response='Insufficient funds': the issuer declined, so no money moved. Card 0003 returns status=pending, response='Awaiting customer authentication' and paid_at null, then success six seconds later.

Hold or capture. Read status and paid_at first. Do not read fee: the declined charge still shows 18,500 kobo, the fee that would have applied, and no money moved.

Tell the customer. For 0003 say: your bank is waiting for you to confirm the payment, for example with a one-time password; once you do, the order completes. We have not been paid yet.

Money returns or settles. Once captured, the merchant is paid the next day at 10:00 as part of one batch, less 1%: this order adds ₦18,315.00 (1,831,500 kobo). If the customer sees a reservation at their bank on an attempt that did not complete, the issuer releases it. The chapter gives no release time, so the entry says so and sends the customer to their bank.

Escalate to Tochukwu when status=success but the order is still unpaid after an hour (an assumed threshold, to be tuned): attach the reference and the charge record.

Open question: how long issuers hold an unconfirmed approval. Tochukwu will ask the provider.

Now you

It is a month later and you are the support lead at Owoleaf at 60 people. A customer, C0000042, writes that Owoleaf took ₦22,800 from their card on Sunday afternoon and their wallet balance did not rise. Write the playbook entry your agents will use for every message like this, for wallet top-ups.

Use the lab. Transaction 9824 is a ₦22,800 card funding that books three entries in kobo, and GET /charges/{reference} shows status=success for it. Step 1 shows approved, declined and pending outcomes, and step 3 shows how a Sunday capture is paid on the Monday settlement. State what you cannot know from the lab, such as how long an issuer holds an approval. Your entry will be read by Owoleaf’s support agents and signed by the head of operations, and it decides when an agent may promise a refund, when they must wait for settlement, and when they must escalate to a payments engineer.

Self-check

DECIDE

Tallowmere's web store is growing. Bimpe books revenue when the dashboard shows an order as paid. At month end the bank received ₦1,204,000 less than the dashboard's total for the month, and the gap is ₦61,200 larger than the provider's fees explain. Tochukwu can change the books, the export or the checkout by the end of the week. What do you do first?

READING
  1. DOC
    Guidelines on Operations of Electronic Payment Channels in Nigeria (CBN, 2020) Central Bank of Nigeria, 2020

    The CBN's own text for ATM, POS, mobile POS and web acceptance. Read the web acceptance section for who may acquire and how merchants are paid, and the settlement provisions for the T+1 wording. This chapter's claims about it rest on search summaries, so check each one here.

  2. DOC
    Regulatory Framework for Non-Bank Acquiring in Nigeria (CBN, 2021) Central Bank of Nigeria, 2021

    The CBN's framework for acquirers that are not banks, which is why the table calls an acquirer a bank or a licensed firm. Read it for who may acquire and under what conditions. It was not read in this build, so check its current status before relying on it.

  3. BOOK
    Payments Systems in the U.S.: A Guide for the Payments Professional Benson, Loftesness and Jones, 2017

    The standard introduction to how card, cheque and transfer systems fit together. Read the card chapters for the four-party model, authorisation, clearing and settlement. The examples are American, so use it for the structure and not for Nigerian rules. The link is the publisher's page about the third edition (2017). Read: Card systems chapters.

  4. DOC
    Visa Core Rules and Visa Product and Service Rules (public edition) Visa, 2026

    A scheme's own rulebook, in the public edition, which Visa says leaves out proprietary details. The link is Visa's rules page, where the current PDF is found. Read only the sections on authorisation, clearing and settlement to see how rules differ from the stages you have learned. It is long and dense; skip the product-specific rules. Dated editions change, so note the edition you read. Read: Authorisation, clearing and settlement sections.

  5. DOC
    What is EMV Chip? (EMVCo) EMVCo, 2026

    A short plain-language page from the body that manages the chip specifications. Read it for what the chip and the terminal do in a card-present payment, and why a card-not-present web payment lacks that step. It does not cover online authentication.

  6. BOOK
    Electronic Value Exchange: Origins of the VISA Electronic Payment System David L. Stearns, 2011

    A history of how a group of banks built a shared network. Read the opening chapter for why a four-party model, with rules in the middle, replaced separate bank programmes. It covers the mid-1960s to the early 1980s, so skip it for current practice. Read: Chapter 1.

All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.

RECALL CARDS Tap to flip. They join your review deck when you mark the lesson complete.
NEXT: Money in software: minor units, rounding, currencies →