AnyLearn
All lessons
Businessintermediate

Before the Agent: How a Card Payment Actually Works

You cannot understand agentic checkout without understanding checkout. This lesson builds the payment foundation: the five parties in every card transaction, the authorization-capture-clearing-settlement path, who really pays interchange, why card-not-present fraud shapes everything, and the tokenization idea that agent payments are built on.

Updated · AI-authored, review-gated · how lessons are made

Not signed in: your progress and quiz score won't be saved.
Progress1 / 9

The plumbing under the button

An AI agent that shops for you has to do something a human does without thinking: pay. And paying, it turns out, is the hard part. Finding a product is a search problem. Handing over money is a trust and authorization problem, negotiated between five parties, governed by rules written long before anyone imagined software doing the buying.

So this cursus starts one layer down. You cannot evaluate any claim about agentic commerce, what breaks, what is genuinely new, who carries the risk, without knowing what happens when you click Pay. Almost everything interesting about agent payments is a modification of this existing machinery, not a replacement of it.

This lesson covers that machinery:

  • Who the parties are and what each one actually does.
  • The transaction path: authorization, capture, clearing, settlement.
  • Interchange: where the money in payments comes from.
  • Card-not-present risk: why remote payments are treated differently, and who eats the loss.
  • Tokenization: the mechanism that agentic commerce is built directly on top of.

One assumption is worth flagging now, because the rest of the cursus attacks it. This entire system was designed around a premise: a human being is present at the moment of purchase. Agents break that premise, and the consequences are the subject of Lessons 2 and 3.

Full lesson text

All 9 steps on one page, for reading, reference, and search.

Show

1. The plumbing under the button

An AI agent that shops for you has to do something a human does without thinking: pay. And paying, it turns out, is the hard part. Finding a product is a search problem. Handing over money is a trust and authorization problem, negotiated between five parties, governed by rules written long before anyone imagined software doing the buying.

So this cursus starts one layer down. You cannot evaluate any claim about agentic commerce, what breaks, what is genuinely new, who carries the risk, without knowing what happens when you click Pay. Almost everything interesting about agent payments is a modification of this existing machinery, not a replacement of it.

This lesson covers that machinery:

  • Who the parties are and what each one actually does.
  • The transaction path: authorization, capture, clearing, settlement.
  • Interchange: where the money in payments comes from.
  • Card-not-present risk: why remote payments are treated differently, and who eats the loss.
  • Tokenization: the mechanism that agentic commerce is built directly on top of.

One assumption is worth flagging now, because the rest of the cursus attacks it. This entire system was designed around a premise: a human being is present at the moment of purchase. Agents break that premise, and the consequences are the subject of Lessons 2 and 3.

2. The five parties

Every card transaction involves five roles. Confusing them is the source of most misunderstanding about payments.

  • The cardholder. You, the person paying.
  • The issuer. The bank that gave you the card. It holds your money or extends you credit, and it is the party that ultimately decides whether to approve a transaction. Your card is the issuer's product.
  • The merchant. The business being paid.
  • The acquirer (or merchant bank). The merchant's side of the relationship: it accepts the transaction on the merchant's behalf, submits it for authorization, and ultimately deposits the funds into the merchant's account.
  • The card network (Visa, Mastercard, and others). Not a bank. It is the switch and the rulebook: it routes messages between acquirers and issuers, sets the rules all participants must follow, and calculates who owes whom.

The critical structural insight: the network does not hold the money. Banks do. The network moves messages and rules. Visa does not pay the merchant; the issuer's money reaches the merchant through the acquirer, and Visa orchestrates it.

This matters for the rest of the cursus, because when you read that "Visa is enabling AI agents to pay," what is actually being changed is the rules and message formats, plus a way to identify agents. The money still flows issuer, network, acquirer, merchant, exactly as before. Agentic commerce is a new kind of instruction entering an old, unchanged pipe.

3. Authorization: the round trip

When you click Pay, a message makes a round trip in roughly a second.

1. Merchant  -->  Acquirer      "can I charge this card $80?"
2. Acquirer  -->  Network       routed by card number
3. Network   -->  Issuer        "your customer wants to spend $80"
4. Issuer checks: valid card? funds/credit available? fraud rules?
5. Issuer    -->  Network  -->  Acquirer  -->  Merchant   approve / decline

If approved, the issuer places a hold on the funds. Notice what has not happened: no money has moved. Authorization is a promise, a reservation against your balance. This is why a pending charge can vanish, or why a hotel's hold sits on your card for days.

Step 4 is where the power sits. The issuer decides, and it decides using its own fraud rules. A transaction can be declined not because you lack funds but because the issuer's model finds it suspicious. That is a genuinely important detail for agentic commerce: an issuer that considers agent-initiated purchases anomalous will decline them, no matter what the merchant or the agent wants. Which is precisely why the networks' agent programs emphasize agent identification, giving the issuer a way to see that a transaction is a legitimate agent acting for a known cardholder, rather than an unexplained oddity that trips a fraud rule.

4. Capture, clearing, and settlement

Authorization reserved the money. Three more steps actually move it, and the gap between them is bigger than most people realize.

  • Capture. The merchant says "bill it for real." This can happen hours or days after authorization, and the amount can differ from what was authorized. That is why hotels and fuel stations authorize an estimate and capture the true figure later.
  • Clearing. Merchants batch their captured transactions and submit them. The network matches each to its original authorization and exchanges the data between acquirer and issuer.
  • Settlement. Money finally moves. And it moves in a way worth understanding: the network calculates net positions across all participating banks, working out who owes what to whom in aggregate, and the banks exchange net amounts rather than settling each transaction individually.

That netting step is the quiet engine of card payments. Millions of transactions between two banks collapse into a single transfer. Without netting, the system would drown in its own volume.

The practical lesson: paying is not one event, it is a pipeline stretched over days. Authorization is fast and is what the customer experiences; settlement is slow and is where money genuinely changes hands. Hold that distinction, because it explains why merchants care so much about the difference between an authorization that will settle and one that will be disputed, and it is exactly the seam that stablecoin settlement, the subject of a companion cursus, aims at.

5. Interchange: who pays for all this

Payments are not free, and the money flows in a direction that surprises people.

The central fee is interchange: it is set by the card network, and paid by the acquirer to the issuer. Read that again, the merchant's side pays the cardholder's bank. It compensates the issuer for its costs and risks: funding the transaction, extending credit, and absorbing fraud.

The merchant does not see interchange as a separate line; it reaches them bundled into the merchant discount rate, the total they pay to accept a card. On an 80 dollar sale, a merchant might receive roughly 77 to 78 dollars. Interchange is the largest slice of that gap.

This explains several things at once:

  • Why your card has rewards. Interchange funds them. Your points are paid for by merchants, through the acquirer, to your issuer.
  • Why merchants care intensely about payment costs. On thin retail margins, 2 to 3 percent of revenue is enormous.
  • Why merchants have a motive to prefer cheaper rails, and why any new payment method arrives with cost as its opening argument.

And it sets up a theme for Lesson 3. Interchange is not arbitrary: it prices risk, chiefly fraud and disputes. So when a new kind of transaction appears whose risk profile is unknown, an agent buying on your behalf, the question "what does this cost?" is really the question "who is liable when it goes wrong?"

6. Card-not-present: the risk that shapes everything

Payments split into two worlds, and the distinction drives the design of everything that follows.

Card-present means the physical card met the physical terminal. The chip performs cryptography proving the real card was there. Fraud is comparatively hard.

Card-not-present (CNP) means the card was not physically present: online, phone, in-app. The merchant is trusting data (a number, an expiry, a security code) rather than a cryptographic proof from the chip. Anyone who has the numbers can transact. CNP is therefore where card fraud concentrates.

The system's response has two parts:

  • Liability sits differently. In CNP, the merchant typically bears the loss on fraudulent transactions. If a stolen card is used on your store and the real cardholder disputes it, the merchant usually eats a chargeback: the money is pulled back, often with a fee, even though the merchant shipped the goods.
  • Extra verification exists precisely to shift that risk, for example 3-D Secure style step-up checks, which can move liability back toward the issuer when the cardholder is authenticated.

So online merchants live with a permanent tension: every extra check reduces fraud and also kills conversion. Ask too much and the customer abandons; ask too little and you absorb chargebacks.

Hold that tension. An agent buying on your behalf is, by construction, a card-not-present transaction in which the cardholder is not even at the keyboard. It is the riskiest category, with the human removed.

7. Tokenization: the idea agents are built on

The last piece is the most important for this cursus, because agentic payments are a direct extension of it.

If CNP fraud comes from the fact that the card number is a bearer secret, anyone who learns it can spend, then the fix is obvious: stop sharing the real number. That is tokenization. The real card number (the PAN) is replaced with a network token, a substitute value that the network can map back to the real card.

Why this is powerful: a token can be scoped. It can be restricted to a particular merchant, so a token stolen from one store is worthless anywhere else. It can be restricted to a channel or device. It can be revoked without reissuing your physical card. This is exactly how a phone wallet works: the merchant never sees your real number.

The benefits are concrete: network tokenization reduces CNP fraud, and it can earn merchants lower interchange, because a scoped credential is genuinely less risky than a raw number, and interchange prices risk.

Now the punchline that sets up Lesson 2. A token is a credential that is deliberately less powerful than the card it stands for. Once you can issue a credential restricted to one merchant, you can ask: why not restrict it to one merchant and one amount, and one use, and a time window? That is not a new idea. It is tokenization taken to its logical end, and it is precisely what handing spending power to an agent requires.

8. The human assumption

Assemble the machinery, and notice what it quietly assumes.

PieceWhat it doesThe assumption inside it
Authorizationissuer approves or declines in ~1sa person chose to buy, now
Capture / settlementmoney moves later, netted between banksthe sale is stable enough to settle
Interchangeacquirer pays issuer; prices riskrisk is understood well enough to price
CNP liabilitymerchant eats fraud chargebacksa human could have been asked to verify
Step-up checks (3-D Secure)authenticate the human, shift liabilitythere is a human to challenge
Tokenizationscoped credential replaces the card numberscope is decided in advance

Every row assumes a present, deciding human. Fraud models are trained on human behavior and flag deviations from it. Step-up authentication challenges a person. Conversion optimization is about human patience. Liability rules ask, in effect, whether a human was properly asked.

An AI agent violates that assumption completely. It buys at 3am, at machine speed, in patterns no human produces, and cannot be shown a challenge screen. To the existing system, a legitimate agent and a fraud bot look identical: automated software spending someone else's money without them watching.

That is the real problem agentic commerce has to solve, and it is not about shopping. It is about proving authority without a human present, and bounding what that authority can do. Fortunately, the last step already showed the shape of the answer, a credential deliberately weaker than a card. Lesson 2 is how the industry is building exactly that.

9. The path of a card payment

A payment runs merchant to acquirer to network to issuer for authorization, which only places a hold; capture, clearing, and netted settlement move the money later, while interchange flows from acquirer to issuer to price the risk the merchant bears in card-not-present sales.

flowchart TD
  A["Cardholder clicks Pay"] --> B["Merchant sends to acquirer"]
  B --> C["Network routes by card number"]
  C --> D["Issuer: funds and fraud checks"]
  D --> E["Approve: funds held, no money moved"]
  E --> F["Capture: bill it for real"]
  F --> G["Clearing: batched and matched"]
  G --> H["Settlement: banks exchange net amounts"]
  H --> I["Merchant paid, minus interchange"]

Check your understanding

The lesson ends with a 5-question quiz. Take it in the player above to see your score.

  1. What is the card network's actual role in a transaction?
    • It holds the cardholder's money and pays the merchant
    • It is the switch and the rulebook: it routes messages between acquirer and issuer, sets the rules, and calculates who owes whom, but it is not a bank
    • It issues the card to the cardholder
    • It is the merchant's bank account
  2. What has happened when a payment is 'authorized'?
    • The money has moved from the cardholder to the merchant
    • The merchant has been paid in full
    • The issuer placed a hold on the funds, a promise; no money has actually moved yet
    • The transaction has settled and cannot be disputed
  3. Who pays interchange, and to whom?
    • The acquirer pays it to the issuer, compensating the issuer for its costs and risks like fraud
    • The cardholder pays it to the network
    • The issuer pays it to the merchant
    • The network pays it to the acquirer
  4. In a card-not-present (online) transaction, who typically bears the loss from fraud?
    • The card network
    • The issuer, always
    • The merchant, usually via a chargeback that pulls the money back even though goods shipped
    • Nobody; it is written off automatically
  5. Why is tokenization the key idea underpinning agentic payments?
    • It encrypts the merchant's website
    • It makes settlement instant
    • It replaces the card number with a scoped credential deliberately less powerful than the card, which can be restricted per merchant, channel, or device, and revoked
    • It removes the issuer from the transaction

Related lessons

Business
intermediate

Agentic Commerce: Trust, Liability, and What Breaks

Scoped tokens and signed mandates solve authorization, not everything. This lesson covers the unsettled parts: who is liable when an agent buys wrong, why merchants and agents have opposing incentives, prompt injection as a new attack surface at checkout, agent-to-agent buying, and why the market forecasts disagree by an order of magnitude.

8 steps·~12 min
Business
intermediate

Delegating Spending Authority to an Agent

How do you let software spend your money without handing it your card? This lesson covers the mechanism behind agentic checkout: scoped single-use credentials like the Shared Payment Token, Google's AP2 intent and cart mandates as signed verifiable credentials, agent identification, and the guardrails that bound what an agent may buy.

8 steps·~12 min
Business
intermediate

Shopify Functions: Custom Logic Inside Checkout

Flow reacts after events; Functions participate during them. This lesson covers how Shopify Functions let you change discounts, shipping, payment options, and cart validation from inside checkout, why they run as WebAssembly compiled from JavaScript or Rust, and why that architecture replaced the old sandboxed Scripts.

8 steps·~12 min
Business
intermediate

The GENIUS Act, Risk, and the Honest Limits

The 2025 GENIUS Act turned stablecoins from an unregulated experiment into a defined instrument with reserve rules, permitted issuers, monthly attestations, and a ban on paying holders yield. This lesson covers what the law requires, why the yield ban shapes the whole business model, and the risks the rules do not remove.

7 steps·~11 min