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

Owoleaf charges its customers 1.5% on a card funding, capped at ₦2,000. Its card provider charges Owoleaf 1% of the amount, with no cap. In the lab's 10,280 successful card fundings, which ones lose money on that fee alone, before any chargeback?

The card chapter followed one payment through issuer, acquirer, scheme and processor, and left the money for this one: who gets what out of the price. Money in software found the ₦2,000 cap and the amount, ₦133,333.33, above which it applies. That chapter treated the cap as a rounding question. Here it is a pricing question, and the answer is less comfortable.

One price, four recipients

A card payment has a single price on the merchant’s side, and the other parties are paid out of it. The merchant discount rate (MDR) is what the merchant pays its acquirer: a percentage of the payment, sometimes with a flat amount. The acquirer then pays two others.

  • Interchange goes from the acquirer to the issuer, the bank that issued the card. It pays for the issuer’s costs: the payment guarantee, the credit or float, fraud losses, rewards. Interchange is set by the card scheme’s rules, or by a regulator, and is the largest part of the MDR.
  • Scheme fees go from the acquirer and the issuer to the card scheme for the network, authorisation and clearing. They are small per payment and add up.
  • What is left is the acquirer’s margin: its price for its own costs, risk and service.

An invented split shows how it divides. A ₦10,000 payment at a 1% MDR costs the merchant ₦100. Say interchange takes 0.60% (₦60), scheme fees 0.15% (₦15) and the acquirer keeps 0.25% (₦25). These percentages are made up for the arithmetic, and the lab’s generator has none of them: it has a single 1% provider fee. The structure is real. The merchant sees one number, but only the last ₦25 is negotiable, because the other ₦75 is set elsewhere. A merchant who wants a lower MDR is negotiating over a quarter of it.

Who sets interchange matters more than what it is. Rochet and Tirole’s paper on payment card associations treats the interchange fee as a transfer between two sides of a market: issuers serve cardholders, acquirers serve merchants, and a card works only if both sides join. The paper is Rochet and Tirole, “Cooperation among competitors: some economics of payment card associations”, RAND Journal of Economics 33(4), 2002, pages 549 to 570; the bibliographic records found by search agree on those pages, and the abstract, as summarised in search results, treats the interchange fee as the access charge banks pay one another in card systems, within a two-sided-market analysisas of 2026-11. The chapter takes that framing and leaves the model’s mathematics.

What regulators have capped, and where Nigeria stands

Two caps on interchange show what a cap looks like, and one Nigerian rule on the merchant’s charge is the one the lab tests. Each is time-dependent, so each is dated.

The EU’s Regulation 2015/751 caps interchange for consumer cards at 0.2% of the transaction value for debit and 0.3% for credit, in force since 9 December 2015 according to the EUR-Lex summary and a CMS law-firm note found by search. Member states may set lower caps for domestic payments, including a fixed amount of up to €0.05 for domestic debit. The search results did not show the article text, so check the regulation before quoting an article numberas of 2026-11. On a €100 debit payment that is €0.20 at most. The cap is a percentage, so it scales with the ticket.

The US Federal Reserve’s Regulation II caps debit interchange for covered issuers at 21 cents plus 5 basis points of the transaction value, in the 2024 edition of 12 CFR 235.3, with a further 1 cent a transaction allowed for issuers meeting fraud-prevention standards (section 235.4). A November 2023 proposal would lower these to 14.4 cents, 4 basis points and 1.3 cents; the search results did not show whether it has been finalised, so check the current textas of 2026-11. On a $50 debit payment the formula gives 21 + 0.05% × 5,000 cents = 21 + 2.5 = 23.5 cents, or 24.5 cents with the fraud adjustment. Here a flat part dominates small payments, which will matter in the break.

The Nigerian rule is on the merchant’s side, in the CBN’s Guide to Charges, and it has moved between editions. What could be confirmed is thin.

A Nigerian bank’s own 2020 pricing sheet, which says it follows the CBN’s Guide to Charges effective 1 January 2020, lists the general merchant service commission as 0.50% of the transaction value but not more than ₦1,000. That is the only place the search results showed the figure: it is a bank’s secondary report of the guide, not the CBN’s text, and the CBN’s own PDF of the guide did not appear in the results. The 0.50% and ₦1,000 is the cap this chapter uses, as an illustration to be checkedas of 2026-11. The CBN’s Guidelines on Operations of Electronic Payment Channels in Nigeria, issued in 2020 and covering ATMs, POS, mobile POS and web acceptance, supersede the 2016 guidelines according to search summaries. The search excerpts did not show their fee or interchange provisions, so this chapter does not say what they provide on merchant feesas of 2026-11. Press reports of the 2011 POS guidelines give a merchant fee limit of 1.25% of the transaction value, some adding a ₦2,000 maximum; the CBN’s 2011 PDF appeared in the results without its fee text, so that figure is unconfirmed.

So the sources found describe different arrangements at different dates, and press reports also describe fees of 0.75% in 2014 and the CBN leaving the charge to negotiation from 2017. None of these was checked against CBN text, and they concern different documents: a charges schedule for banks and a guideline on channels. Search results also carried press reports in 2026, and one law-firm summary, of a revised guide said to replace the January 2020 one, with a merchant charge of 0.5% capped at ₦10,000, some calling the document a draft. No result from the CBN’s own site confirmed it, press is not a source for a rule, and the chapter does not use it as one. It does mean the 2020 figure may no longer be the current one. If a revised guide is in force when you read this, its text replaces the ₦1,000 in the lab, and the lab is built so that you change one constant.

Whether a CBN charges guide caps what a processor like Owoleaf’s provider may charge Owoleaf for online card acceptance is a legal question this chapter does not answer. The lab asks it as an “if”, in two directions, and shows what each does.

Pricing a card at Owoleaf

Owoleaf is the merchant at the provider and the price-setter to its own customers. Two prices meet on every card funding. The customer’s fee, the generator’s illustrative 1.5% capped at ₦2,000, is Owoleaf’s revenue. The provider’s 1% is Owoleaf’s cost, paid on the day’s batch. The margin on a funding is the first less the second. Writing the margin as a function of the amount A, in naira, gives three regions.

Amount Fee Cost Margin
up to ₦133,333.33 1.5% of A 1% of A 0.5% of A
₦133,333.33 to ₦200,000 ₦2,000 1% of A ₦2,000 less 1% of A, falling from ₦666.67 to ₦0
above ₦200,000 ₦2,000 1% of A negative, and it grows with A

The second region is the one that hides. The fee has stopped rising, and the cost has not, but the payment is still profitable. People look for the loss at the cap and do not find it there. It starts at ₦200,000, where 1% of the amount equals the cap: 2,000 ÷ 0.01 = ₦200,000. Plain algebra says so, and step 2 of the lab finds the same point by scanning amounts in integer kobo.

On Owoleaf’s books, the effect is small in naira and large in principle. The median card funding is ₦5,487. Ten of the 10,280 are above ₦200,000, the largest ₦592,110: the fee is ₦2,000 and the provider’s 1% is ₦5,921.10, a margin of −₦3,921.10. Their combined loss is ₦9,683.59 against a margin of ₦530,029.71 on all fundings. It is 1.8% of the margin. But that is only the beginning, because the same cap rule means that the larger the payment the lower the effective fee. At ₦592,110 the customer pays 0.338%.

A second thing is only visible against the settlement report. The provider takes 1% of the day’s batch, not of each line, and the ledger’s processing_expense is the sum of those batch fees. Step 2 checks that the lines add up to the batch to the kobo on the day of the largest funding, and that the ledger’s expense is 1,654,083 kobo below 1% of all fundings, which is the fee on 29 June’s captures, not yet settled when the data ends (settlement and payouts is why). Do not mistake that gap for an error.

The costs the fee column cannot see

Margin per funding stops at the processing fee. The money that Owoleaf loses elsewhere sits in other tables. The chargeback is the large one: the generator’s disputes table has 109 on the card fundings, with a ₦1,000 fee each win or lose, as the lab’s mock defines it. The chapter on disputes and chargebacks (Disputes, chargebacks and refund abuse, in this module) takes them apart. Here they are a cost.

Add them, with one assumption of this chapter’s own: when Owoleaf loses a dispute, or accepts it, it bears the amount, because the customer’s wallet was credited and the money may be spent. The ledger does not post that. Fees and losses together are ₦109,000 + ₦403,959 = ₦512,959, which is 96.8% of the ₦530,029.71 margin. What is left is ₦17,070.71 on ₦112,244,350.00 of volume, about 0.015% of it. The monthly table in step 3 shows the months swinging either side of zero.

That changes how to read the price. A price of 1.5% with a 1% cost looks like a 0.5% margin, and it is 0.015% after chargebacks. Three things follow:

  • The price list is not the only lever. Fraud and chargeback rate decide whether the card route makes money, and a small amount of fraud outweighs a fee.
  • A fixed fee per dispute is a larger share of a small payment. ₦1,000 against a ₦5,000 funding’s margin of ₦25 is 40 fundings’ worth of margin, so a single dispute on a small payment is the expensive case.
  • A cap on what you charge makes it worse. The cost that follows a large payment, its chargeback risk, is not capped.

Repricing, and what each list does to customers

A price list is a function from an amount to a fee. Four of them, applied to the same 10,280 fundings with customers’ behaviour held fixed, show the choices. The last assumption is generous: a customer who pays ₦8,881.65 on a ₦592,110 funding might not do it.

List What changes Effect in the lab
A, today 1.5%, cap ₦2,000 ten fundings lose money
B cap raised to ₦6,000, above 1% of the largest funding no losing line; 31 customers pay more
C no cap no losing line; 31 customers pay more, the largest by ₦6,881.65
D today’s fee, with card fundings above ₦200,000 declined no losing line; 10 fundings lost

There is no answer here that the data chooses. B and C raise the price on exactly the customers who can least avoid it and who are the likeliest to be businesses. D turns away ten fundings to save ₦9,683.59 and give up ₦20,000 of fees. Whether a price rise or a limit is right depends on who the customers are, what rivals charge, and what a regulator has said about charging for cards. Teaching the analysis is the aim, and the lab does not say which.

If the charge were capped

Hold the 2020 figure reported above (0.50%, at most ₦1,000) up against the generator’s prices. The capped charge reaches its maximum at 1,000 ÷ 0.005 = ₦200,000, the same point at which the lab’s 1% reaches ₦2,000, which is a coincidence of the generator’s numbers. Four cases follow.

Case Margin Lines at a loss
today: fee 1.5% (cap ₦2,000), provider 1% ₦530,029.71 10
provider held to the cap, customer fee as today ₦1,096,067.52 0
customer fee held to the cap, provider at 1% −₦566,037.81 10,280
both held to the cap ₦0.00 0

The cap on the provider’s price, if it applied, would more than double Owoleaf’s margin, and nobody at the provider would like it: the provider’s 1% is above the capped charge on every one of the 10,280 lines. A cap on what Owoleaf charges its own customers is the reverse and loses money on every line, since the 1% cost is untouched. The last row is a clean lesson. If both sides of a price are capped at the same rate, the intermediary earns nothing, and a business that earns nothing on the payment has to find the revenue elsewhere (float, interest, other fees) or stop offering it. That is the interchange debate in one row: it is why caps tend to move money between parties, and not to remove it.

Where it goes wrong

Each of these looks reasonable until the report arrives.

Pricing from the percentage alone. The 0.5% margin is true per funding on the processing fee and false after chargebacks. The decision gets made on the first number.

Not looking for the third region. Teams test the cap point, see a margin, and stop. The loss starts higher, at the amount where the cost reaches the capped fee.

A flat fee in the cost that the price does not copy. A percentage fee against a percentage cost scales, and a flat cost against a percentage fee does not. The break shows that a flat ₦100 puts all 7,115 fundings under ₦10,000 at a loss.

Taking the fee column as revenue. fee_kobo on a declined funding is the fee that would have applied, as the card chapter showed. Sum over succeeded rows, or over the fee_revenue entries.

Using the batch fee as a per-line fact. The provider’s fee is on the batch. Per-line costs are an allocation, adding to the batch fee only if you allocate with the same rounding. Step 2 confirms one day; do not assume it for every fee design.

Quoting a cap without its edition. The reported figure differs between 2011, 2014, 2017 and 2020, and press reports describe another for 2026. Put the document and its date next to the number.

Treating a lab cap as a legal finding. The case table assumes a cap binds a charge. Whether it does is for a lawyer reading the current text.

LAB Find where a card loses money, price for it, and test a cap ~40 MIN
YOU NEEDPython 3.9 or later (standard library only)labs/finance with the data generated (python3 generate.py, then python3 cards.py)A second terminal for the mock provider in step 2No Docker, no packages

You work in labs/finance. You create seven small files there: pricing.py, bands.py, crossover.py, fullcost.py, reprice.py, mdrcap.py and flat.py. The data is generated at seed 42 and scale 0.1, with cards.py run, so your numbers match the ones below. Everything is integer kobo; the only floats are in the printed ratios. The fees (1.5%, the ₦2,000 cap, the provider’s 1%, the ₦1,000 dispute fee) are the generator’s and are illustrative. The ₦1,000 cap in step 5 is the 2020 Guide to Charges figure as reported above, and is not confirmed against the CBN’s text.

1. Margin by amount band. Save pricing.py, the price list and cost as functions of the amount, and bands.py, which groups the successful card fundings.

cd labs/finance
ls data/finance.sqlite data/disputes.csv >/dev/null 2>&1 || (python3 generate.py && python3 cards.py)
python3 check.py
loan book: 372 loans, 850,258,479 kobo of principal outstanding; checks 7-11 run
card book: 10,680 card attempts, 109 disputes for 91,728,900 kobo; checks 12-15 run
accounts by type (debit-positive kobo): {'asset': 17355054889, 'equity': -5000000000, 'expense': 110590267, 'income': -221782321, 'liability': -12243862835}
settlement_bank in ledger 17,189,646,589 kobo; on the statement 17,192,741,324 kobo
OK: all invariants hold

The books check out. The two first lines appear when loans.py and cards.py have run: the card book line is the one for this chapter, and checks 12 to 15 are the card tables’. Without loans.py you will not see the first line.

"""Owoleaf's card price list and its costs, as functions of the amount. Money is integer kobo.

Two prices meet on every card funding. The customer pays Owoleaf a fee (1.5%, capped at
2,000 naira: the generator's price list, ILLUSTRATIVE). Owoleaf pays its card provider 1% of
the amount (the generator's PROCESSOR_FEE_RATE, ILLUSTRATIVE).
"""
import sqlite3

DB = "data/finance.sqlite"
NAIRA = 100


def percent(amount, num, den):
    """num/den of amount, rounded half up, in integer arithmetic (no float touches money)."""
    return (amount * num * 2 + den) // (den * 2)


def customer_fee(amount):          # what the generator charges: 1.5%, capped at 2,000 naira
    return min(2_000 * NAIRA, percent(amount, 15, 1000))


def provider_cost(amount):         # what the provider takes: 1%
    return percent(amount, 1, 100)


def naira(kobo):
    sign = "-" if kobo < 0 else ""
    kobo = abs(kobo)
    return f"{sign}₦{kobo // 100:,}.{kobo % 100:02d}"


def fundings(path=DB):
    """Every successful card funding: (transaction id, amount, fee the ledger booked, created_at)."""
    db = sqlite3.connect(path)
    return db.execute("""SELECT id, amount_kobo, fee_kobo, created_at FROM transactions
                         WHERE kind = 'funding_card' AND status = 'succeeded' ORDER BY id""").fetchall()
import pricing as p

rows = p.fundings()
print(f"succeeded card fundings: {len(rows):,}")
same = sum(p.customer_fee(a) == f for _, a, f, _ in rows)
print(f"my price list reproduces the ledger's fee on {same:,}; the other {len(rows) - same:,} differ by 1 kobo (half up against the generator's half even)")
print("revenue below is the fee the ledger booked, not my recomputation")

BANDS = [(0, 5_000), (5_000, 10_000), (10_000, 25_000), (25_000, 50_000),
         (50_000, 100_000), (100_000, 200_000), (200_000, 10**9)]
print(f"{'band (naira)':<18}{'fundings':>9}{'volume':>17}{'fee revenue':>15}{'provider 1%':>14}{'margin':>13}{'margin/volume':>15}")
tot = [0, 0, 0, 0]
for lo, hi in BANDS:
    s = [(a, f) for _, a, f, _ in rows if lo * p.NAIRA <= a < hi * p.NAIRA]
    vol = sum(a for a, _ in s)
    rev = sum(f for _, f in s)
    cost = sum(p.provider_cost(a) for a, _ in s)
    label = f"{lo:,} to {hi:,}" if hi < 10**9 else f"{lo:,} and over"
    print(f"{label:<18}{len(s):>9,}{p.naira(vol):>17}{p.naira(rev):>15}{p.naira(cost):>14}{p.naira(rev - cost):>13}{(rev - cost) / vol * 100:>14.3f}%")
    for i, v in enumerate((len(s), vol, rev, cost)):
        tot[i] += v
print(f"{'all':<18}{tot[0]:>9,}{p.naira(tot[1]):>17}{p.naira(tot[2]):>15}{p.naira(tot[3]):>14}{p.naira(tot[2] - tot[3]):>13}{(tot[2] - tot[3]) / tot[1] * 100:>14.3f}%")
python3 bands.py
succeeded card fundings: 10,280
my price list reproduces the ledger's fee on 7,694; the other 2,586 differ by 1 kobo (half up against the generator's half even)
revenue below is the fee the ledger booked, not my recomputation
band (naira)       fundings           volume    fee revenue   provider 1%       margin  margin/volume
0 to 5,000            4,813   ₦12,312,896.00    ₦184,693.32   ₦123,128.96   ₦61,564.36         0.500%
5,000 to 10,000       2,302   ₦16,356,560.00    ₦245,348.39   ₦163,565.60   ₦81,782.79         0.500%
10,000 to 25,000      2,130   ₦33,033,385.00    ₦495,500.76   ₦330,333.85  ₦165,166.91         0.500%
25,000 to 50,000        740   ₦25,384,921.00    ₦380,773.84   ₦253,849.21  ₦126,924.63         0.500%
50,000 to 100,000       234   ₦15,588,524.00    ₦233,827.78   ₦155,885.24   ₦77,942.54         0.500%
100,000 to 200,000       51    ₦6,599,705.00     ₦92,329.12    ₦65,997.05   ₦26,332.07         0.399%
200,000 and over         10    ₦2,968,359.00     ₦20,000.00    ₦29,683.59   -₦9,683.59        -0.326%
all                  10,280  ₦112,244,350.00  ₦1,652,473.21 ₦1,122,443.50  ₦530,029.71         0.472%

The margin is 0.500% in every band up to ₦100,000, because 1.5% less 1% is 0.5%. It falls to 0.399% in the band that holds the cap point (₦100,000 to ₦200,000) and turns negative above ₦200,000, where ten fundings lose ₦9,683.59 between them. Over all 10,280 fundings the margin is ₦530,029.71, which is 0.472% of ₦112,244,350.00 of volume. The last two bands pull it under 0.5%. Revenue is the fee the ledger booked, not a recomputation: the price list reproduces it on 7,694 fundings and differs by 1 kobo on 2,586, because the generator rounds a half kobo to even and the lab’s function rounds it up.

2. Find the amount where it turns, and check the provider’s fee. In a second terminal start the mock provider and leave it running:

cd labs/finance
python3 mock_provider.py

Save crossover.py. It finds the cap and the loss point by algebra and by scanning amounts in kobo, lists the losing fundings, asks the provider for the report of the day after the largest one, and compares the ledger’s processing_expense with 1% of every funding.

import json
import sqlite3
import urllib.request
import pricing as p

# 1. The algebra, then a scan in integer kobo that does not trust it.
fee_cap, rate_fee, rate_cost = 200_000, 0.015, 0.010
print(f"the customer fee reaches its cap at {fee_cap / rate_fee:,.2f} kobo = {p.naira(round(fee_cap / rate_fee))}")
print(f"the provider's 1% reaches the cap at {fee_cap / rate_cost:,.0f} kobo = {p.naira(round(fee_cap / rate_cost))}")
first_cap = next(a for a in range(1, 30_000_000) if p.customer_fee(a) == fee_cap)
first_loss = next(a for a in range(first_cap, 30_000_000) if p.customer_fee(a) < p.provider_cost(a))
print(f"scan: the fee first equals the cap at {first_cap:,} kobo ({p.naira(first_cap)})")
print(f"scan: the first amount where the provider costs more than the fee: {first_loss:,} kobo ({p.naira(first_loss)})")
print(f"   at that amount: fee {p.customer_fee(first_loss):,}, provider {p.provider_cost(first_loss):,}")

# 2. The ten fundings above that point.
rows = p.fundings()
over = [(i, a, f, c) for i, a, f, c in rows if a >= first_loss]
print(f"\nfundings where 1% passes the cap: {len(over)} of {len(rows):,}")
for i, a, f, c in sorted(over, key=lambda r: -r[1]):
    print(f"   txn {i:>6}  {c[:10]}  {p.naira(a):>13}  fee {p.naira(f):>9}  provider {p.naira(p.provider_cost(a)):>9}  margin {p.naira(f - p.provider_cost(a)):>10}")
print(f"together they lose {p.naira(sum(p.provider_cost(a) - f for _, a, f, _ in over))}")

# 3. Does the provider's own report charge 1% of each line? It charges 1% of the day's batch.
BASE, HEAD = "http://127.0.0.1:8101", {"Authorization": "Bearer sk_test_owoleaf_mock"}
big = max(over, key=lambda r: r[1])
day = big[3][:10]
nxt = (__import__("datetime").date.fromisoformat(day) + __import__("datetime").timedelta(days=1)).isoformat()
req = urllib.request.Request(BASE + "/settlements?date=" + nxt, headers=HEAD)
rep = json.load(urllib.request.urlopen(req))
per_line = sum(p.provider_cost(x["amount_kobo"]) for x in rep["lines"])
print(f"\nprovider report for {nxt}: {len(rep['lines'])} captures, gross {rep['gross_kobo']:,}, fee {rep['fee_kobo']:,}")
print(f"   1% line by line, half up: {per_line:,}; the difference is {rep['fee_kobo'] - per_line} kobo")

# 4. The whole period: the ledger's processing_expense against 1% of every successful funding.
db = sqlite3.connect(p.DB)
booked = db.execute("""SELECT SUM(e.amount_kobo) FROM entries e JOIN accounts a ON a.id = e.account_id
                       WHERE a.code = 'processing_expense'""").fetchone()[0]
everything = sum(p.provider_cost(a) for _, a, _, _ in rows)
last = max(c[:10] for _, _, _, c in rows)
tail = sum(p.provider_cost(a) for _, a, _, c in rows if c[:10] == last)
print(f"\nprocessing_expense in the ledger: {booked:,}; 1% of every succeeded funding: {everything:,}")
print(f"   difference {everything - booked:,} = 1% of the {last} captures, not settled when the data ends: {tail:,}")
python3 crossover.py
the customer fee reaches its cap at 13,333,333.33 kobo = ₦133,333.33
the provider's 1% reaches the cap at 20,000,000 kobo = ₦200,000.00
scan: the fee first equals the cap at 13,333,300 kobo (₦133,333.00)
scan: the first amount where the provider costs more than the fee: 20,000,050 kobo (₦200,000.50)
   at that amount: fee 200,000, provider 200,001

fundings where 1% passes the cap: 10 of 10,280
   txn   4652  2026-02-22    ₦592,110.00  fee ₦2,000.00  provider ₦5,921.10  margin -₦3,921.10
   txn  55740  2026-05-31    ₦311,039.00  fee ₦2,000.00  provider ₦3,110.39  margin -₦1,110.39
   txn    782  2026-01-25    ₦309,749.00  fee ₦2,000.00  provider ₦3,097.49  margin -₦1,097.49
   txn  70970  2026-06-16    ₦299,621.00  fee ₦2,000.00  provider ₦2,996.21  margin   -₦996.21
   txn  33537  2026-05-03    ₦293,942.00  fee ₦2,000.00  provider ₦2,939.42  margin   -₦939.42
   txn  32173  2026-05-01    ₦266,877.00  fee ₦2,000.00  provider ₦2,668.77  margin   -₦668.77
   txn  83267  2026-06-29    ₦248,072.00  fee ₦2,000.00  provider ₦2,480.72  margin   -₦480.72
   txn  28584  2026-04-25    ₦231,886.00  fee ₦2,000.00  provider ₦2,318.86  margin   -₦318.86
   txn  15522  2026-03-31    ₦213,170.00  fee ₦2,000.00  provider ₦2,131.70  margin   -₦131.70
   txn  79091  2026-06-25    ₦201,893.00  fee ₦2,000.00  provider ₦2,018.93  margin    -₦18.93
together they lose ₦9,683.59

provider report for 2026-02-23: 30 captures, gross 87,016,500, fee 870,165
   1% line by line, half up: 870,165; the difference is 0 kobo

processing_expense in the ledger: 110,590,267; 1% of every succeeded funding: 112,244,350
   difference 1,654,083 = 1% of the 2026-06-29 captures, not settled when the data ends: 1,654,083

The algebra gives ₦133,333.33 for the fee cap and ₦200,000 for the loss point. The scan agrees to the kobo it can: it works in whole kobo with half-up rounding, so it sees the fee reach its cap at ₦133,333.00 and the first loss at 20,000,050 kobo (₦200,000.50), where 1% is 200,000.5 kobo and rounds up to 200,001 against a fee of 200,000. Ten fundings are over the line, and ₦9,683.59 is what they lose together. On the provider’s report for 23 February the 30 captures add up to ₦870,165.00 of fee both ways, so allocating the batch fee line by line costs nothing on that day. Over the whole period the ledger’s processing_expense is 1,654,083 kobo lower than 1% of every funding, and that is exactly 1% of 29 June’s captures, which settle the day after the data ends.

3. Add the costs the fee column cannot see. Save fullcost.py. It adds, by month of funding, the dispute fees and the amounts of disputes Owoleaf lost or accepted. The assumption in the comment is the chapter’s: the ledger does not post these.

import sqlite3
from collections import defaultdict
import pricing as p

db = sqlite3.connect(p.DB)
rows = p.fundings()
month = defaultdict(lambda: dict(n=0, vol=0, rev=0, cost=0, disputes=0, dfee=0, loss=0))
for _, a, f, at in rows:
    m = month[at[:7]]
    m["n"] += 1; m["vol"] += a; m["rev"] += f; m["cost"] += p.provider_cost(a)

# Every dispute is a chargeback on a card funding. The processor's fee is charged win or lose.
# Assumption (ours, not the ledger's): when a dispute is lost or accepted Owoleaf bears the amount,
# because the customer's wallet was credited and the money may already be spent.
for tid, amount, fee, status, at in db.execute("""
        SELECT d.transaction_id, d.amount_kobo, d.fee_kobo, d.status, t.created_at
        FROM disputes d JOIN transactions t ON t.id = d.transaction_id"""):
    m = month[at[:7]]
    m["disputes"] += 1
    m["dfee"] += fee
    m["loss"] += amount if status in ("lost", "accepted") else 0

print(f"{'funded in':<10}{'fundings':>9}{'fee revenue':>15}{'provider 1%':>14}{'dispute fees':>14}{'lost+accepted':>15}{'what is left':>14}")
tot = defaultdict(int)
for k in sorted(month):
    m = month[k]
    left = m["rev"] - m["cost"] - m["dfee"] - m["loss"]
    print(f"{k:<10}{m['n']:>9,}{p.naira(m['rev']):>15}{p.naira(m['cost']):>14}{p.naira(m['dfee']):>14}{p.naira(m['loss']):>15}{p.naira(left):>14}")
    for key in m:
        tot[key] += m[key]
left = tot["rev"] - tot["cost"] - tot["dfee"] - tot["loss"]
print(f"{'all':<10}{tot['n']:>9,}{p.naira(tot['rev']):>15}{p.naira(tot['cost']):>14}{p.naira(tot['dfee']):>14}{p.naira(tot['loss']):>15}{p.naira(left):>14}")
print(f"disputes: {tot['disputes']}; margin before disputes {p.naira(tot['rev'] - tot['cost'])}; after {p.naira(left)}")
print(f"dispute losses and fees take {(tot['dfee'] + tot['loss']) / (tot['rev'] - tot['cost']) * 100:.1f}% of the margin")
python3 fullcost.py
funded in  fundings    fee revenue   provider 1%  dispute fees  lost+accepted  what is left
2026-01         224     ₦33,561.44    ₦24,138.47     ₦1,000.00      ₦9,851.00    -₦1,428.03
2026-02         655    ₦107,373.98    ₦76,900.56     ₦7,000.00     ₦16,151.00     ₦7,322.42
2026-03       1,284    ₦194,283.53   ₦130,543.75    ₦15,000.00     ₦68,529.00   -₦19,789.22
2026-04       2,018    ₦319,504.52   ₦215,135.82    ₦36,000.00     ₦61,364.00     ₦7,004.70
2026-05       2,902    ₦484,866.23   ₦329,452.96    ₦24,000.00     ₦76,055.00    ₦55,358.27
2026-06       3,197    ₦512,883.51   ₦346,271.94    ₦26,000.00    ₦172,009.00   -₦31,397.43
all          10,280  ₦1,652,473.21 ₦1,122,443.50   ₦109,000.00    ₦403,959.00    ₦17,070.71
disputes: 109; margin before disputes ₦530,029.71; after ₦17,070.71
dispute losses and fees take 96.8% of the margin

Revenue less the provider’s 1% is ₦530,029.71. The 109 disputes cost ₦109,000 in fees and ₦403,959 in amounts lost or accepted (₦197,862 lost and ₦206,097 accepted, from the disputes table), which is 96.8% of that margin and leaves ₦17,070.71. Three of the six months are below zero. Look at 2026-04: the stolen-card ring’s month has the most disputes (36) and a thin positive result, because the month’s volume carried it. The chargeback side, evidence and the ledger postings are the next chapter’s subject.

4. Reprice. Save reprice.py. It applies four price lists to the same fundings, holding customers’ behaviour fixed, and counts who pays more.

import pricing as p

rows = p.fundings()
NAIRA = p.NAIRA


def capped(rate_num, rate_den, cap_naira):
    cap = cap_naira * NAIRA if cap_naira else None
    def fee(a):
        f = p.percent(a, rate_num, rate_den)
        return min(cap, f) if cap else f
    return fee


# Each list is a function of the amount. A list that declines a funding returns None.
LISTS = {
    "A today: 1.5%, cap ₦2,000":          capped(15, 1000, 2_000),
    "B  1.5%, cap ₦6,000":                capped(15, 1000, 6_000),
    "C  1.5%, no cap":                    capped(15, 1000, None),
    "D  today's fee, ₦200,000 limit":     lambda a, f=capped(15, 1000, 2_000): f(a) if a <= 200_000 * NAIRA else None,
}
base = LISTS["A today: 1.5%, cap ₦2,000"]
booked = sum(f for _, _, f, _ in rows)
print(f"fee revenue the ledger booked: {p.naira(booked)}; list A recomputed here: {p.naira(sum(base(a) for _, a, _, _ in rows))} (half up against half even)")
print(f"{'price list':<32}{'revenue':>15}{'provider 1%':>14}{'margin':>13}{'pay more':>10}{'declined':>9}{'worst line':>13}")
for name, fee in LISTS.items():
    rev = cost = more = declined = 0
    worst = 0
    for _, a, _, _ in rows:
        f = fee(a)
        if f is None:
            declined += 1
            continue
        rev += f
        cost += p.provider_cost(a)
        more += f > base(a)
        worst = min(worst, f - p.provider_cost(a))
    print(f"{name:<32}{p.naira(rev):>15}{p.naira(cost):>14}{p.naira(rev - cost):>13}{more:>10}{declined:>9}{p.naira(worst):>13}")
big = max(a for _, a, _, _ in rows)
print(f"\nthe biggest funding is {p.naira(big)}; 1% of it is {p.naira(p.provider_cost(big))}; list B's cap of ₦6,000 clears it")
print(f"list C charges {p.naira(LISTS['C  1.5%, no cap'](big))} on that funding, {p.naira(LISTS['C  1.5%, no cap'](big) - base(big))} more than today")
python3 reprice.py
fee revenue the ledger booked: ₦1,652,473.21; list A recomputed here: ₦1,652,499.07 (half up against half even)
price list                              revenue   provider 1%       margin  pay more declined   worst line
A today: 1.5%, cap ₦2,000         ₦1,652,499.07 ₦1,122,443.50  ₦530,055.57         0        0   -₦3,921.10
B  1.5%, cap ₦6,000               ₦1,680,809.36 ₦1,122,443.50  ₦558,365.86        31        0        ₦0.00
C  1.5%, no cap                   ₦1,683,691.01 ₦1,122,443.50  ₦561,247.51        31        0        ₦0.00
D  today's fee, ₦200,000 limit    ₦1,632,499.07 ₦1,092,759.91  ₦539,739.16         0       10        ₦0.00

the biggest funding is ₦592,110.00; 1% of it is ₦5,921.10; list B's cap of ₦6,000 clears it
list C charges ₦8,881.65 on that funding, ₦6,881.65 more than today

List A recomputed here is ₦25.86 above the booked revenue, the half-up against half-even difference from step 1, so compare the lists with each other and not with the ledger. B and C remove the loss: the biggest funding’s 1% (₦5,921.10) is under B’s ₦6,000 cap, so no line costs more than it earns. In both, 31 customers pay more, the ones above ₦133,333. D keeps the price and declines ten fundings, giving up ₦20,000 of fees for ₦29,683.59 of provider cost. None of them accounts for the chargebacks in step 3. Change the lists and see which survive step 3’s costs.

5. Test a cap. Save mdrcap.py. It holds a charge to 0.50% at most ₦1,000 and applies it four ways. The constants are the 2020 Guide’s as a bank’s pricing sheet reports them; if a newer guide is in force, change CAP_RATE and CAP_MAX and run it again.

import pricing as p

rows = p.fundings()
CAP_RATE = (5, 1000)           # 0.50% of the transaction value ...
CAP_MAX = 1_000 * p.NAIRA      # ... but not more than ₦1,000 (the 2020 Guide's general-merchant line, as reported)


def mdr_cap(a):
    return min(CAP_MAX, p.percent(a, *CAP_RATE))


print(f"the capped charge reaches its ₦1,000 maximum at {CAP_MAX / 0.005:,.0f} kobo = {p.naira(round(CAP_MAX / 0.005))}")
print(f"the provider's 1% is above the capped charge on {sum(p.provider_cost(a) > mdr_cap(a) for _, a, _, _ in rows):,} of {len(rows):,} fundings")

cases = {
    "today: customer fee 1.5% cap ₦2,000, provider 1%": (lambda a, f: f, p.provider_cost),
    "provider held to the cap, customer fee as today": (lambda a, f: f, mdr_cap),
    "customer fee held to the cap, provider at 1%": (lambda a, f: mdr_cap(a), p.provider_cost),
    "both held to the cap": (lambda a, f: mdr_cap(a), mdr_cap),
}
print(f"\n{'case':<52}{'revenue':>15}{'cost':>15}{'margin':>14}{'lines at a loss':>16}")
for name, (rev_fn, cost_fn) in cases.items():
    rev = cost = losing = 0
    for _, a, f, _ in rows:
        r, c = rev_fn(a, f), cost_fn(a)
        rev += r
        cost += c
        losing += r < c
    print(f"{name:<52}{p.naira(rev):>15}{p.naira(cost):>15}{p.naira(rev - cost):>14}{losing:>16,}")
python3 mdrcap.py
the capped charge reaches its ₦1,000 maximum at 20,000,000 kobo = ₦200,000.00
the provider's 1% is above the capped charge on 10,280 of 10,280 fundings

case                                                        revenue           cost        margin lines at a loss
today: customer fee 1.5% cap ₦2,000, provider 1%      ₦1,652,473.21  ₦1,122,443.50   ₦530,029.71              10
provider held to the cap, customer fee as today       ₦1,652,473.21    ₦556,405.69 ₦1,096,067.52               0
customer fee held to the cap, provider at 1%            ₦556,405.69  ₦1,122,443.50  -₦566,037.81          10,280
both held to the cap                                    ₦556,405.69    ₦556,405.69         ₦0.00               0

If the provider were held to the cap and Owoleaf’s fee stayed as it is, the margin would be ₦1,096,067.52 and no line would lose. If the cap bound Owoleaf’s own fee while the provider stayed at 1%, every one of the 10,280 lines would lose, and the margin would be −₦566,037.81. With both held to the cap, nothing is earned. Nothing here says which case, if any, the CBN’s text creates. The lab shows what each would mean for the price list.

Make the provider’s price a flat ₦100 plus 0.5%, so the cost is not a percentage alone. Save flat.py, which replaces provider_cost and counts the losing lines.

import pricing as p

rows = p.fundings()
p.provider_cost = lambda a: 10_000 + p.percent(a, 5, 1000)   # ₦100 flat plus 0.5%: ILLUSTRATIVE
losing = [(a, f) for _, a, f, _ in rows if f < p.provider_cost(a)]
print(f"lines at a loss: {len(losing):,} of {len(rows):,}; the loss on them: {p.naira(sum(p.provider_cost(a) - f for a, f in losing))}")
small = [a for a, _ in losing if a < 10_000 * 100]
print(f"of them {len(small):,} are under ₦10,000: 1.5% less 0.5% is 1%, and 1% of ₦10,000 is the ₦100 flat part")
rest = [a for a, _ in losing if a >= 10_000 * 100]
print(f"the other {len(rest)}: {', '.join(p.naira(a) for a in rest)}, where the capped fee no longer covers 0.5% plus ₦100")
tot_rev = sum(f for _, _, f, _ in rows); tot_cost = sum(p.provider_cost(a) for _, a, _, _ in rows)
print(f"margin overall: {p.naira(tot_rev - tot_cost)}")
python3 flat.py

It prints this:

lines at a loss: 7,116 of 10,280; the loss on them: ₦425,884.03
of them 7,115 are under ₦10,000: 1.5% less 0.5% is 1%, and 1% of ₦10,000 is the ₦100 flat part
the other 1: ₦592,110.00, where the capped fee no longer covers 0.5% plus ₦100
margin overall: ₦63,225.70

The overall margin is still positive, ₦63,225.70, so a total would not warn you. But all 7,115 fundings under ₦10,000 lose money, and ₦425,884.03 is lost on 7,116 lines: with a flat part in the cost, the loss moves from the few largest payments to nearly all the small ones, because a flat amount is a larger share of a small payment. The small payments are 69% of the count. Rerun bands.py with this cost to see the bands turn. A price list that copies the cost’s shape (a flat part of its own) would fix it, and so would a minimum payment. Either changes who pays.

ARTEFACT Write the card pricing proposal ~45 MIN
YOU PRODUCEMerchant pricing proposal

Template

# Pricing proposal: <product, channel>
Author (pricing analyst or PM) · Approvers (head of payments, finance) · Date · Data: <source, period, row count>

## Decision needed
<Adopt this price card from <date>. One sentence.>

## Cost stack per transaction
| Cost | Rate or amount | Total in the period | Source or assumption |
|---|---|---|---|
| Provider fee | <% and any flat part> | | |
| Dispute fee | <per dispute, win or lose> | | |
| Lost or accepted chargebacks | <who bears the amount> | | |

## Proposed price card
Today: <fee rule>. Proposed: <fee rule>. Who pays more: <count, size band>.

## Margin by size and channel
| Size band | Channel | Transactions | Margin before disputes | Margin after |
|---|---|---|---|---|

## Where it loses money
<Sizes, count, naira lost, and what the card does about them. Months below zero.>

## Review conditions
- Review if <event or number>, owner <name>, checked <how often>.

## What this cannot see
<One way it could be wrong, and what would show it. Out of scope.>
WORKED EXAMPLE

A pricing analyst on Owoleaf’s payments team writes this; the head of payments and the finance lead approve it. Dated 20 November 2026. Data: the lab’s 10,280 successful card fundings, January to June 2026, ₦112,244,350.00 of volume.

Decision needed. Replace today’s card fee (1.5%, capped at ₦2,000) with list B (1.5%, capped at ₦6,000) from 1 January 2027.

Cost stack. The provider takes 1%, ₦1,122,443.50 in all; what it pays on to the issuer and the scheme is not visible to us. Disputes: 109, with a ₦1,000 fee each win or lose (₦109,000) and ₦403,959 lost or accepted, on the chapter’s assumption that Owoleaf bears the amount.

Price card. List B earns a margin of ₦558,365.86 against ₦530,055.57 for today’s list recomputed the same way. 31 customers, all above ₦133,333, pay more; the ₦592,110.00 funding pays ₦6,000 instead of ₦2,000.

Margin. Card top-ups only; NIP top-ups are out of scope because the lab prices no other channel. Every band under ₦100,000 earns 0.500%; ₦100,000 to ₦200,000 earns 0.399%; ₦200,000 and over earns -0.326% today.

Where it loses. Ten fundings above ₦200,000 lose ₦9,683.59 today and none under B. After chargebacks only ₦17,070.71 is left, and January, March and June are negative. B does not touch that: the next step is dispute handling.

Review if the provider adds a flat part (a flat ₦100 puts 7,115 fundings under ₦10,000 at a loss); counsel finds a cap binds our own fee (the lab shows -₦566,037.81); or two months running end below zero after chargebacks.

Could be wrong: customers above ₦133,333 may leave. Volume in that band the month after would show it.

Now you

You are the pricing analyst on Omotola’s payments team at Lumora Mobile. Nasiru, who builds the top-up service, gives you these illustrative facts. Card recharges: the margin before costs is 5% of the recharge (₦25 on ₦500), the provider takes 1%, and about 1 recharge in 100 is disputed. Each dispute costs a ₦1,000 fee, and half of them are lost, so Lumora also loses the recharge amount; assume disputes fall evenly across sizes. Transfer recharges: the provider charges a flat ₦10 and there are no disputes. Recharge sizes are ₦100, ₦500, ₦2,000 and ₦5,000.

Write a proposal for a card price card: leave it, add a minimum, or add a surcharge. Work the margin by size and channel the way bands.py and fullcost.py do, and say where it loses money, as crossover.py does. A spreadsheet is enough; no code is needed. Omotola and the finance team read it, and it decides which lever Lumora tries first.

Self-check

DECIDE

Lumora Mobile sells airtime and data by card. Omotola's team sees from its provider's reports that its blended card cost is a percentage, that disputes cost a flat fee each, and that the margin on a typical ₦500 recharge is thin. The finance team asks whether to set a card surcharge, raise the minimum recharge by card, or leave the price and tighten fraud checks. The CBN text that applies to Lumora's card acceptance has not been confirmed by legal counsel. What does Omotola do first?

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

    The CBN's channel rules for ATMs, POS, mobile POS and web acceptance. Read section 2.0 on POS card acceptance for the fee and interchange provisions: this chapter did not see them, so it states nothing about them.

  2. DOC
    Fees for card-based payments (EUR-Lex summary of Regulation (EU) 2015/751) European Union, 2015

    The EU's own plain summary of the interchange caps on consumer debit and credit cards and the options left to member states. Read it for the structure of a cap, a percentage with room for a lower fixed amount, then the regulation for the exact text.

  3. DOC
    12 CFR 235.3: Reasonable and proportional interchange transaction fees (Regulation II, 2024 edition) Federal Reserve Board, 2024

    The text of the US debit cap, a flat part plus a percentage. Read it to see how a flat component dominates small tickets, as in the break. A 2023 proposal would change the figures, so check the current text.

  4. DOC
    Debit Card Interchange Fees and Routing (Federal Register, 14 November 2023) Federal Reserve Board, 2023

    The Federal Reserve's proposal to lower the Regulation II figures, with its method for deriving them from issuers' costs. Read the explanation of how the cap is built, which shows a regulator pricing a card. Whether it was adopted is not settled by this item.

  5. PAPER
    Cooperation among competitors: some economics of payment card associations Jean-Charles Rochet and Jean Tirole, 2002

    The standard economic analysis of why a card scheme sets an interchange fee between issuers and acquirers. Read the abstract and the introduction for the two-sided-market logic. Skip the proofs. Read: RAND Journal of Economics 33(4), pp. 549-570; the abstract and introduction.

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: Cross-border payments: correspondent banks, FX, remittances, PAPSS →