Payment lifecycles

Pre-authorization: from the hold to the money in your bank

"Payment successful" on day 0 and money in your bank on day 3 are two different events with three more in between. Here's the whole line: the hold, the capture, clearing, settlement and the payout, how long each step takes on Stripe, what happens when a hold expires, and the money-timeline material from chapters 4 and 5.

Authorization windows, extended and incremental authorization rules and payout timing are from Stripe's documentation, checked on 14 November 2026. The card networks change these rules without notice; read capture_before on each charge rather than hard-coding them.

A pre-authorization (or authorization hold) is a card authorization you haven't captured yet. The issuer approves the amount and reserves it against the customer's credit limit or balance, but no money moves. You capture later, for the full amount or less, and only then does the payment head toward your bank. Stripe calls this manual capture, and its own example is the hotel that "authorize[s] a payment in full before a guest arrives, then capture[s] the money when the guest checks out" (Stripe).

Every card payment goes through authorization and capture. With the default settings they happen back to back, so nobody notices there are two. Pre-authorization just puts a gap between them.

The timeline: auth, capture, clearing, settlement, payout

Visa's definitions for the network steps: clearing is "the process of delivering final transaction data from an acquirer to an issuer for posting" to the cardholder's account, including the fees between the banks and any currency conversion; settlement is "calculating, determining, reporting and transferring the net financial position" of issuers and acquirers for everything cleared, and it "occurs on each business day and is conducted on a net basis" for the previous cycle (Visa 10-K, fiscal 2007). Those definitions date from Visa's first annual report; its later filings still describe VisaNet as authorizing, clearing and settling transactions (Visa 10-K, fiscal 2018).

StepWhat happensWho does itWhen (Stripe, US card)What the customer sees
AuthorizationThe issuer approves the amount and holds itIssuer, via the networkSeconds, at checkoutA pending charge
CaptureYou confirm the final amount, up to what was authorizedYouImmediately by default; with manual capture, before capture_before (7 days for most online payments)Still pending
ClearingFinal transaction data goes from the acquirer to the issuer for posting; interbank fees are calculatedProcessor and acquirer, through the networkAfter capture, in the processor's batch (Authorize.net, for one, closes a batch a day (Authorize.net))The charge posts and the hold goes
SettlementThe network nets out what each issuer owes each acquirer and moves the moneyCard network and banksEach business day, for the previous cycle (Visa)Nothing
PayoutYour processor pays you, net of its feesStripeFunds become available 2 business days after capture, then go out on your payout scheduleNothing

The last row needs two footnotes. Stripe's US "initial settlement timing" is 2 business days, which it defines as "the amount of time it takes for your funds to become available" in your Stripe balance; its own example counts from capture. Your payout schedule decides when available funds are sent, not how fast they become available, and your bank may take extra time. A new account's first payout typically comes 7-14 days after its first live payment (Stripe).

Note what "settlement" means there. When Stripe says settlement timing it means your balance; when Visa says settlement it means banks paying banks. Searches for "payment settlement" mean either, so check which one a document is talking about before you put a date in a contract.

How long a hold lasts

Stripe's windows for online (card-not-present) payments (Stripe):

Card brandCustomer-initiatedMerchant-initiated
Visa7 days5 days (exactly 4 days 18 hours)
Mastercard, American Express, Discover7 days7 days

In person it's shorter: 5 days on Visa (again 4 days 18 hours) and 2 days on the others. Stripe decides customer- or merchant-initiated from what actually happened, not from your off_session flag alone, so read the window back from payment_method_details.card.capture_before on the charge instead of hard-coding the table. Not every method can be held at all: cards, Affirm, Afterpay, Cash App Pay, Klarna and PayPal can; ACH and iDEAL can't (Stripe).

What happens when it expires

If you don't capture in time, "the funds are released and the payment status changes to canceled" (Stripe). There's no grace period and no late capture. To get paid you need a new payment, which means a saved card and an off-session charge, or the customer back at checkout. The new authorization can be declined: the customer's available credit has had a week to change.

If you know you won't capture, cancel the PaymentIntent instead of waiting. That releases the hold now rather than when it lapses (Stripe).

Partial capture: charge less, release the rest

Pass amount_to_capture to capture less than you authorized. "A partial capture automatically releases the remaining amount", and for most payments you get one capture only: capture $60 of a $100 hold and the other $40 is gone, not saved for a second shipment (Stripe). Stripe offers multicapture for some card payments if you need several.

Capturing less beats capturing everything and refunding the difference, because on Stripe's standard pricing a refund doesn't return the processing fee. Partial refunds works through what that costs on a $100 order.

Extended and incremental authorization

Two features for businesses that don't know the final amount at checkout. Both are IC+ features on Stripe; on standard pricing you ask support for access.

  • Extended authorization holds an online card payment for up to 30 days instead of 7. On Stripe: Visa hotels, lodging, vehicle rental and cruise lines get 30 days (exactly 29 days 18 hours), and other Visa merchant categories get it for customer-initiated payments at an extra 0.08% per transaction. Mastercard allows all categories, American Express lodging and vehicle rental (capture by the end of the stay or rental), and Discover a list of travel and lodging categories. Request it with request_extended_authorization="if_available" and check extended_authorization.status on the charge, because "if available" means it may not be (Stripe).
  • Incremental authorization raises the held amount on an uncaptured payment: the hotel guest who orders room service, the rental car kept two extra days. Visa, Mastercard and American Express allow it in all categories; Discover only in listed ones such as car rental, hotels and restaurants. You get 10 attempts per PaymentIntent. A declined increment leaves the earlier amount capturable, and increments don't extend the hold, so you still capture inside the original window (Stripe).

Both come with network rules about when you're allowed to use them. Stripe notes that for many networks the extended window is only for cases where you don't know the final amount, and that most networks prohibit incremental authorization where the amount is known up front, such as recurring subscriptions (Stripe, Stripe). A SaaS plan doesn't qualify.

Why customers see pending charges that disappear

A hold looks like a charge in most banking apps. Stripe's own warning: "card statements from some issuers and interfaces from payment methods don't always distinguish between authorizations and captured (settled) payments, which can sometimes confuse customers" (Stripe). A pending line then vanishes for one of four reasons:

  • You captured it. The hold is replaced by the posted charge, sometimes for a different amount.
  • You captured less. The remainder was released, so a $100 pending line becomes a $60 charge.
  • You canceled it, or it expired. No charge ever posts.
  • It was incremented. Each increment shows as its own pending entry (a $10 hold raised to $15 shows as $10 and $5), and after capture they're replaced by one entry for the total (Stripe).

None of these is a double charge, but a customer looking at two lines can't tell. Stripe doesn't promise how quickly the customer's bank drops a released hold from its app, so don't promise a date either. For extended holds Stripe recommends clear statement descriptors, because customers see their funds held for longer (Stripe).

In code: authorize now, capture what shipped

Create the PaymentIntent with capture_method="manual"; when the customer confirms, it stops at requires_capture and Stripe sends payment_intent.amount_capturable_updated (Stripe). Record the deadline then, capture what shipped, and handle the hold that lapsed while the parcel sat in the warehouse:

from datetime import datetime, timezone

import stripe


def record_hold(intent_id):
    """Run from your payment_intent.amount_capturable_updated handler."""
    intent = stripe.PaymentIntent.retrieve(intent_id, expand=["latest_charge"])
    card = intent.latest_charge.payment_method_details.card
    return {
        "amount_capturable": intent.amount_capturable,
        # Schedule the capture from this, not from "7 days".
        "capture_before": datetime.fromtimestamp(card.capture_before, timezone.utc),
    }


def capture_shipped(order, shipped_cents):
    """Charge what actually shipped. Stripe releases the rest of the hold."""
    intent = stripe.PaymentIntent.retrieve(order.payment_intent_id)
    if intent.status == "canceled":
        # The hold expired (or someone canceled it). Nothing left to capture.
        return reauthorize(order, shipped_cents)
    if intent.status != "requires_capture":
        raise RuntimeError("unexpected status: " + intent.status)
    if shipped_cents > intent.amount_capturable:
        raise ValueError("more than the hold; that's overcapture or a new payment")

    try:
        return stripe.PaymentIntent.capture(
            intent.id,
            amount_to_capture=shipped_cents,
            idempotency_key="order-" + str(order.id) + "-capture",
        )
    except stripe.InvalidRequestError:
        # Lost a race with the expiry? Look again rather than guess.
        intent = stripe.PaymentIntent.retrieve(intent.id)
        if intent.status == "canceled":
            return reauthorize(order, shipped_cents)
        raise


def reauthorize(order, amount_cents):
    """A fresh charge on the saved card. Needs the card saved for off-session
    use at checkout, and it can be declined: raises stripe.CardError."""
    return stripe.PaymentIntent.create(
        amount=amount_cents,
        currency=order.currency,
        customer=order.customer_id,
        payment_method=order.payment_method_id,
        off_session=True,
        confirm=True,
        idempotency_key="order-" + str(order.id) + "-reauth",
    )

The re-authorization path only works if you saved the card for off-session use when the customer checked out, and it's a merchant-initiated payment with its own decline risk. Run a daily job over capture_before so that path is rare: anything inside 24 hours of its deadline gets captured or canceled. Stripe PaymentIntents covers the statuses around requires_capture, and the payment lifecycle states are the state machine this all sits in.

The same timeline as one $100 payment, from the pending charge on day 0 to $96.80 in your account on day 3. From chapter 4.

Authorization is just the start. Here's the actual money timeline:

Day 0: Authorization

  • Money is "held" on Sarah's card but not yet moved
  • You see "Payment successful"
  • Sarah sees a "pending" charge

Day 0-1: Capture

  • You confirm the charge (usually automatic)
  • This tells everyone to actually move the money
  • Some businesses delay capture until they ship

Day 1-2: Settlement

  • All the day's transactions are bundled together
  • Banks actually transfer money between each other
  • This happens through the card network's settlement service (VisaNet Settlement Service for Visa), and the banks fund their positions through central bank or wire payments

Day 2-5: Deposit

  • Your acquiring bank receives the funds
  • They deduct their fees (on Stripe's US list price, 2.9% + $0.30)
  • The remainder hits your bank account

So for Sarah's $100 payment:

  • Day 0: $100 authorized on her card
  • Day 1: $100 captured
  • Day 3: $96.80 deposited to you (after 2.9% + $0.30 fees)

The three clocks in a checkout (the hold, the Checkout Session and the PaymentIntent) and a sweeper for the one Stripe leaves to you. From chapter 5.

What Expires and What Doesn't

Three different things in a checkout have three different clocks, and mixing them up is how inventory stays reserved for a customer who left last Tuesday.

  • An uncaptured authorization expires. That's the window from the previous section. When it lapses on Stripe, the funds are released and the PaymentIntent moves to canceled.
  • A Checkout Session expires. Stripe's API reference says a session expires 24 hours after creation by default, and you can set expires_at anywhere from 30 minutes to 24 hours. Stripe sends checkout.session.expired when it does.
  • A PaymentIntent doesn't. One that never gets a payment method sits in requires_payment_method indefinitely, and a failed attempt sends it back there so the customer can try again. Stripe's lifecycle docs say you can cancel it any time before it reaches processing or succeeded (and for some bank debits, during processing), which releases any held funds and can't be undone.

So the expiry you actually need to manage for an abandoned PaymentIntent is your own: how long you're willing to hold the stock. Pick a timeout, and when it passes, cancel the intent and release the inventory yourself:

from datetime import datetime, timedelta, timezone

import stripe

ABANDON_AFTER = timedelta(hours=2)  # your business rule, not Stripe's

# Statuses where the customer never finished paying. requires_capture is
# left out on purpose: that customer did pay, and the fix is to capture.
ABANDONED_STATUSES = {'requires_payment_method', 'requires_confirmation',
                      'requires_action'}

class AbandonedPaymentSweeper:
    def __init__(self, repo, inventory):
        self.repo = repo            # Your payment records
        self.inventory = inventory  # Whatever holds the reservations

    def sweep(self, now=None):
        """Cancel PaymentIntents nobody finished within ABANDON_AFTER"""
        now = now or datetime.now(timezone.utc)
        for payment in self.repo.open_payments(created_before=now - ABANDON_AFTER):
            intent = stripe.PaymentIntent.retrieve(payment.intent_id)

            if intent.status not in ABANDONED_STATUSES:
                # Paid, processing or awaiting capture while we weren't
                # looking: let the webhook handler finish it, keep the stock.
                continue

            try:
                stripe.PaymentIntent.cancel(
                    payment.intent_id,
                    cancellation_reason='abandoned',
                )
            except stripe.InvalidRequestError:
                # Status changed between retrieve and cancel. Re-check next sweep.
                continue

            self.inventory.release(payment.order_id)
            self.repo.mark_abandoned(payment.id)

If you'd rather reuse the intent when the customer comes back tomorrow, don't cancel it: update the amount if the cart changed and confirm it again. Cancel only when you've decided the sale is gone, because a canceled PaymentIntent can't be revived.

Who does what in the middle three steps

Clearing and settlement happen between your processor, your acquirer and the card network, and on a payment service provider like Stripe you never touch them: you see a capture, then a payout. If you're working out where your processor ends and your acquirer begins, payment gateway vs processor maps the parties to the steps.

Questions

What is a pre-authorization?

A card authorization that hasn't been captured yet. The issuer approves the amount and holds it on the customer's card, but no money moves until you capture, for the full amount or less. Hotels authorize before arrival and capture at checkout.

How long does an authorization hold last?

On Stripe, 7 days for most online card payments. A merchant-initiated Visa payment gets 5 days, exactly 4 days 18 hours, and in-person payments get 5 days on Visa and 2 on other brands. Extended authorization can stretch an eligible hold to 30 days. Read capture_before on the charge for the real deadline.

What happens if a pre-authorization isn't captured?

It expires: the funds are released and the Stripe payment moves to canceled. You can't capture it late. To get paid you need a new payment, which can be declined, so capture or cancel before the deadline.

What is the difference between clearing and settlement?

Clearing delivers the final transaction data from the acquirer to the issuer for posting to the cardholder's account, and calculates the fees between them. Settlement transfers the net money between issuers and acquirers for everything cleared. Visa settles each business day on a net basis. Your payout from the processor comes after both.

Why did a pending charge disappear from my customer's card?

A pending charge is usually an authorization hold. It disappears when the merchant captures it (replaced by the posted charge), captures less (the rest is released), cancels it, or lets it expire. Incremental authorizations show as separate pending entries that become one charge after capture.

What the book adds

The rest of chapters 4 and 5

  • The eight steps of an authorization, in milliseconds
  • Authorization vs capture as a state machine, with the expiry rules
  • Partial captures and refunds, and the arithmetic that has to hold
  • Where a payment died, from the error you got back
  • Testing a lifecycle without waiting a week for a hold to expire

30-day money-back · Instant PDF and EPUB

All 42 chapters