Websites & Hosting

How Online Card Payments Work

Follow a card payment from checkout to your bank account, and understand authorization, capture, settlement, fees, fraud checks and chargebacks.

Key takeaways

  • Authorization is the issuing bank's approval and hold; capture and settlement are what actually move the money.
  • Several parties sit between buyer and seller, though one provider often plays more than one role.
  • Hosted payment pages and tokenization let a store take cards without storing card numbers.
  • Fraud checks such as address and security code matching and 3-D Secure reduce risk but don't remove it.
  • Refunds are started by the merchant, while chargebacks are disputes raised through the cardholder's bank.

When you pay by card online, your details go securely to a payment provider, which sends an approval request through a card network to the bank that issued your card. That bank says yes or no within seconds. The money itself moves later, in a separate process of capture, clearing and settlement, and can be reversed afterward through a refund or dispute.

If you sell online, knowing those stages explains why an "approved" order isn't yet cash, why fees look the way they do and where fraud losses land.

Who is involved

  • Cardholder: the buyer.
  • Merchant: you, the seller.
  • Payment gateway: the service that takes card details from your checkout and passes them on securely.
  • Processor: the company that handles the technical messages with the networks.
  • Acquirer: the bank or institution that accepts card payments on the merchant's behalf.
  • Card network: the scheme, such as Visa or Mastercard, that routes messages and sets rules.
  • Issuer: the bank that gave the buyer the card and holds their account.

Many small businesses sign up with a single payment service that bundles gateway, processing and acquiring arrangements. Some networks, such as American Express in many cases, also act as issuer or acquirer.

The parties around one card payment
Card network Routes messages and sets the rules Issuer Approves and bills the cardholder Acquirer Banks the merchant's card sales Cardholder Pays with the card Merchant Sells goods or services Gateway and processor Carry the data securely Card network Routes messages and sets the rules Cardholder Pays with the card Merchant Sells goods or services Gateway and processor Carry the data securely Acquirer Banks the merchant's card sales Issuer Approves and bills the cardholder

What happens at checkout

The buyer enters the card number, expiry date, security code and usually a billing address. The number itself has structure: leading digits identify the issuer range and network, and the last digit is a check digit calculated with the Luhn algorithm, which lets a form catch typing mistakes before sending anything. Passing that check says nothing about whether the card exists or has funds.

On a well-built store, those details go directly from the buyer's browser to the payment provider, over HTTPS, through a hosted page or fields the provider supplies inside your checkout. Your server receives a token, a stand-in value that is useless to a thief outside that context. HTTPS and TLS protect the data in transit.

Authorization

The provider sends an authorization request through the acquirer and network to the issuer. The issuer checks that the card is valid, that funds or credit are available and that the purchase fits its fraud rules. It replies with an approval code or a decline reason.

Authorizing an online card payment
Buyer's browser Payment provider Card network Issuing bank Card details over HTTPS 1 Authorization request 2 Via the acquirer Route to the issuer 3 Approve or decline 4 Response 5 Order confirmed or declined 6 Buyer's browser Payment provider Card network Issuing bank Card details over HTTPS 1 Authorizat ion request 2 Via the acquirer Route to the issuer 3 Approve or decline 4 Response 5 Order confirmed or declined 6

An approval places a hold on the buyer's available balance. Declines can come from insufficient funds, a wrong detail, an expired card or suspected fraud. Issuers often give merchants only general reasons, so a polite message suggesting another card or a call to the bank is usually the best you can offer.

Capture, clearing and settlement

Capture tells the system to collect an authorized amount. Many stores capture immediately. Others capture when goods ship, which avoids charging for items that turn out to be unavailable. Authorizations expire after a period set by network and issuer rules, so you can't wait indefinitely.

Clearing is the exchange of final transaction details between acquirer and issuer through the network. Settlement is the movement of funds between the banks. Your provider then pays out to your business account on its schedule, usually after subtracting fees. New or higher-risk businesses may see longer delays or a reserve held back.

If you cancel before capture, you void the authorization, though the hold may take a few days to disappear from the buyer's view. After capture, you issue a refund, a new movement of money back to the card.

Credit, debit and timing

The same checkout accepts different kinds of card, and they behave differently underneath. A credit card draws on a line of credit, so the hold reduces available credit and the buyer pays the issuer later. A debit card draws on a bank account, so a hold ties up the buyer's own money, which is why duplicate or oversized holds cause complaints. Prepaid cards often fail address checks or recurring charges because of how they are issued.

Say a buyer orders an item for 80 and you capture at shipping. At checkout the issuer holds 80. Two days later you ship and capture 80, and the pending entry becomes a posted charge. If one 30 item is out of stock, you capture only 50 where your provider supports partial capture, and the remaining hold is released according to the issuer's timing. If you had captured 80 up front, you would refund 30 instead, and you might not recover the fee on that amount.

Your reports should therefore separate orders, captured sales, refunds, disputes, fees and payouts. A payout rarely matches one day's orders, and matching each deposit to its transactions is the core of reconciling your books.

Where the fees go

Component Paid to Depends on
Interchange Issuing bank Card type, region, how the sale was made
Network or scheme fees Card network Volume and transaction features
Processor or acquirer markup Your provider Your contract
Extras Provider Disputes, currency conversion, add-ons

Some providers charge one blended rate, which is easy to predict. Others pass through interchange and network fees and add a markup, which is more detailed and sometimes cheaper at higher volume. Compare statements using your own mix of cards, countries and order sizes. Several places regulate interchange or restrict card surcharges, and those rules vary.

Fraud checks

Online sales are "card not present": you can't inspect the card or the person. Common safeguards include:

  • Security code: the printed code shows the buyer likely has the card details beyond the number. Payment security rules forbid storing it after authorization.
  • Address verification: compares billing address numbers with the issuer's records, where supported.
  • 3-D Secure: the issuer authenticates the buyer, often through a banking app, one-time code or silent risk assessment. In the European Economic Area and the UK, strong customer authentication rules make this common.
  • Risk scoring: looks at patterns such as many attempts, mismatched locations or unusual orders.

Successful 3-D Secure authentication often shifts liability for fraud claims from the merchant to the issuer, subject to network rules. Stricter filters stop more fraud and also reject more genuine buyers, so review both.

Card testing is a pattern to watch: bots push many small attempts through a checkout to learn which stolen numbers work. A burst of declines is the clue. Rate limits, challenges and your provider's fraud tools help. Also guard your pages against injected scripts that copy card details, described in card skimming on websites.

When a payment fails

Not every failure means a problem with the buyer. Common causes include a mistyped detail, an expired card, an authentication step the buyer abandoned, a bank blocking an unfamiliar or cross-border purchase, your own fraud rules and temporary outages at one of the parties.

Show a clear message, keep the cart intact and offer another payment method. Avoid revealing exactly which check failed, since that helps someone testing stolen details. Don't automatically retry a declined card over and over: networks limit retries, and repeated attempts can look abusive.

Your system should also cope with uncertainty. If the connection drops after a buyer presses pay, you may not know whether the charge succeeded. Providers typically offer idempotency keys, identifiers that make a repeated request count only once, and webhooks, messages the provider sends to your server when a payment's status changes. Verify that those messages really come from your provider, using the signature method it documents, before you mark an order paid. Never rely only on the buyer's browser returning to a "thank you" page.

Refunds and chargebacks

A refund is voluntary and starts with you. A chargeback begins when the cardholder disputes a charge with the issuer, for reasons such as unauthorized use, goods not received or goods not as described. The amount is typically pulled back from the merchant, often with a fee, while evidence is considered. Deadlines are strict and set by network and provider rules.

Reduce disputes by using a recognizable business name on statements, shipping when promised, keeping delivery proof, answering complaints quickly and making refunds easy. A refund usually costs less than a dispute. Buyers in many countries also have legal protections around disputed card charges.

Your security duties

The Payment Card Industry Data Security Standard (PCI DSS) applies to businesses that accept cards. How much work it involves depends on how your checkout is built, and handing card entry to your provider reduces it considerably. PCI basics for small sellers explains the practical side.

Keep your store software updated, use multi-factor authentication on the payment dashboard, restrict who can issue refunds and never ask customers to send card numbers by email or chat. Those habits protect more than any single fraud setting.

Digital wallets and saved cards

Wallets on phones and browsers typically send a network token or device-specific number plus a one-time cryptographic value, so your store never sees the real card number, and the buyer confirms with a fingerprint, face or passcode. Saved cards for repeat purchases or subscriptions should be stored by your provider, with the buyer's clear agreement, while you keep only the token and perhaps the last four digits for display.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in Websites & Hosting →

Latest news on this topic