Card security

Network tokens: the stored card that survives a reissue

A customer's bank reissues their card, and every subscription on the old number starts failing on its renewal date. Nobody did anything wrong; the number just stopped existing. Network tokens and card account updaters are the networks' fix. Here's how each works, what the approval claims are and who makes them, what Stripe and Adyen do for you, and the dunning material from chapter 24.

A network token is a payment credential issued by the card network (Visa Token Service, Mastercard's tokenization service, American Express) that stands in for the card number, tied to one card and one merchant. When the bank reissues the card, the network keeps the token pointing at the new one, so the merchant's stored credential keeps working. Stripe describes them as "payment credentials specific to a card-merchant pair" (Stripe).

A card account updater solves the same problem the older way. You keep the card number (or your processor does), and the networks' updater services send the new number or expiry date when a card is replaced, so the next charge uses the fresh details (Stripe).

Network tokenCard account updater
What's storedA network-issued token instead of the card numberThe card number, refreshed when it changes
How it stays currentThe network updates the card behind the tokenThe network sends new details, in batches or at decline time
Extra data on each paymentUsually a one-time cryptogram fetched from the network (Stripe)None
Useful outside the processor that holds itDepends on your processor; tokens are per merchantOnly to whoever holds the card number

They're complementary. Stripe keeps card numbers in its vault and picks a network token or the card number for each payment; when it uses the card number, the account updater supplies the latest details (Stripe).

Why they raise approval rates on stored cards

A stored card mostly fails for a boring reason: the details are out of date. It expired, or it was lost and replaced. A network token sidesteps that, because the credential you send is the one the network keeps current, and Stripe says network tokens reduce "the number of charges declined due to outdated credentials" (Stripe). Stripe's optimization docs add that the chance a network token turns a payment into a success is "significantly higher" when the card behind it was updated (Stripe).

How big is the lift? Visa says network tokens gave an "8% uplift in authorisation rates across Europe when compared to eCommerce PAN transactions", from its own Visa Analytics Platform data for 2023 (Visa). That's Visa's claim about Visa's product, for Europe, measured against all e-commerce card-number payments rather than your customers. Adyen says only "higher authorization rates" (Adyen) and Stripe's guide gives no figure. Treat 8% as a reason to switch them on, not a forecast, and measure your own approval rate on stored cards before and after.

There's a cost side too, mostly on interchange-plus pricing. Stripe says some network-token payments qualify for lower interchange, giving Visa's discounts on some consumer card-not-present payments as the example, and that tokens avoid fees such as Mastercard's Credential Continuity Program fee for using outdated card details. It also says network tokens can carry fees of their own, naming Visa's Digital Credential Updater fee (Stripe).

What Stripe does

  • Network tokens: on by default. Stripe says its network token solution "works out-of-the-box for all merchants who use Stripe Payments" and requests tokens on your behalf from Visa, Mastercard and American Express (Stripe).
  • Card account updater: also automatic. Stripe says it's widely supported in the US, where it can update most American Express, Visa, Mastercard and Discover cards; international support varies by country, and you can't tell in advance which cards support it (Stripe).
  • What you see: a payment_method.automatically_updated event when the network updates a saved card. It carries the new expiry date and last four digits, and the card fingerprint changes if the number did (Stripe). The Optimization page in the Dashboard estimates how much each feature recovered.

That event is worth handling. Update the card details you show customers, and cancel any "your card is expiring" email you'd queued, because the network already fixed it:

import os

import stripe
from flask import Flask, abort, request

app = Flask(__name__)
WEBHOOK_SECRET = os.environ["STRIPE_WEBHOOK_SECRET"]


@app.post("/webhooks/stripe")
def stripe_webhook():
    try:
        event = stripe.Webhook.construct_event(
            request.get_data(),
            request.headers.get("Stripe-Signature", ""),
            WEBHOOK_SECRET,
        )
    except (ValueError, stripe.SignatureVerificationError):
        abort(400)

    if event["type"] == "payment_method.automatically_updated":
        pm = event["data"]["object"]
        card = pm["card"]
        # A plain overwrite, so a duplicate delivery changes nothing.
        update_saved_card(
            payment_method_id=pm["id"],
            last4=card["last4"],
            exp_month=card["exp_month"],
            exp_year=card["exp_year"],
            fingerprint=card["fingerprint"],  # changes if the number changed
        )
        # The network already replaced the card: don't ask the customer to.
        cancel_card_expiry_emails(pm["id"])
    return "", 200

The update is a plain overwrite, so a duplicate delivery is harmless; anything that sends an email needs a proper idempotency check, which Stripe webhooks covers.

What Adyen does

  • Network tokens: only for payments Adyen acquires, and you ask Adyen support to enable them. Each /payments response can tell you whether the attempt used one (retry.attempt.networkTokenOffered in additionalData), and for card-on-file payments you save the networkTxReference from the first payment (Adyen).
  • Real Time Account Updater: for Visa, Mastercard and Cartes Bancaires. When a payment is refused, Adyen checks for new card details and retries within the same transaction, keeping your stored token ID unchanged. It needs enabling by support, shopperInteraction set to ContAuth, and no security code on the payment. The realtimeAccountUpdaterStatus field reports results such as CardChanged, CardExpiryChanged or CloseAccount (Adyen).

If you integrate with the networks yourself

Most merchants never do: the processor is the token requestor. If you have, note that Mastercard says it will globally decommission MDES for Merchants effective 31 December 2026 and that integrators must move to Secure Card on File and migrate their tokens before then (Mastercard).

What tokens don't fix

A token keeps a replaced card working. It doesn't put money in the account. Insufficient funds, a closed account, or an issuer that says do not try again all still decline, and those need the retry and dunning decisions in dunning and failed payments. And a network token is about approvals, not PCI scope: your processor's token already kept the card number out of your systems. Tokenization vs encryption has the scope side.

Gateway tokens against network tokens, side by side. On the cons line: most merchants get network tokens through their processor, as above, rather than dealing with the networks directly. From chapter 17.

Network Tokenization vs. Payment Gateway Tokenization

Gateway Tokenization (Stripe, PayPal, etc.):

# Token only works with that specific payment processor
stripe_token = 'tok_1ABC123'  # Only Stripe can use this
paypal_token = 'PAY-7XY789'   # Only PayPal can use this

# Pros: Easy to implement, handles PCI compliance
# Cons: Vendor lock-in, can't switch processors easily

Network Tokenization (Visa/Mastercard/Amex):

# Issued by the card network for one card at one merchant
network_token = '4111111111111111'  # Looks like a card number but isn't
cryptogram = 'AAABCdEFG...'         # Unique per transaction

# Pros: better authorization rates, updates itself when the card is reissued
# Cons: whether you can move tokens to another processor depends on who
#       requested them; most processors (Stripe included) do it for you

What to do with expired cards when your processor has no account updater, and the rest of the recovery levers. From chapter 24.

Dunning Optimization

Treat high-value customers with personal outreach, support tickets, and longer grace periods. For expired cards on a processor without an account updater, skip the retries and push update requests by email and SMS. Insufficient-funds failures want longer delays and retries timed to paydays. Most US employers pay weekly or every two weeks, not on the 1st and 15th (BLS), so learn each customer's pattern from when their earlier payments cleared. At scale, an ML model predicting optimal retry timing from customer history beats any fixed schedule. If you're on Stripe, Smart Retries already does the timing part, and what's left for you is the messaging and the pause-or-cancel decision.

Questions

What is network tokenization?

Replacing a stored card number with a token issued by the card network, such as Visa Token Service, tied to one card and one merchant. The network keeps the token linked to the current card when the bank reissues it, so the stored credential keeps working.

What is a card account updater?

A card network service that sends a merchant or processor the new card number or expiry date when a card is replaced, so stored cards can be updated before the next charge. Stripe applies these updates to saved cards automatically and sends a payment_method.automatically_updated event.

Do network tokens increase approval rates?

They reduce declines caused by outdated card details. Visa says network tokens gave an 8% uplift in authorisation rates across Europe against e-commerce card-number transactions, from its own 2023 data. That's Visa's figure; measure your own approval rate on stored cards.

Does Stripe use network tokens automatically?

Yes. Stripe says its network token solution works out of the box for all merchants using Stripe Payments, requesting tokens from Visa, Mastercard and American Express on your behalf. Its card account updater is automatic too.

What is the difference between network tokens and card account updater?

A network token replaces the card number with a credential the network keeps current. An account updater keeps the card number and sends new details when the card changes. Stripe uses both, choosing a network token or the card number for each payment.

What the book adds

The rest of chapter 24

  • Failure categories and the action each one gets
  • A dunning sequence, day by day
  • Pause, downgrade or cancel at the end of it
  • Churn prediction signals
  • Trial conversion

30-day money-back · Instant PDF and EPUB

All 42 chapters