What a payment gateway does when a card is charged
A payment gateway is the software service that takes card details from your online checkout, passes them to the banking system that handles the charge, and sends back an approval or a decline. It sits between your store and the card system. It usually does not hold your money. Funds land in a merchant account at an acquiring bank, and the gateway is the connection that lets your website reach that bank. Many providers sell both pieces together, which is why the two often get mixed up.
When a shopper presses pay, the gateway collects the card number, expiry date and security code, then sends them to a processor. The processor forwards the request through a card network such as Visa or Mastercard to the bank that issued the shopper's card. That issuing bank approves or declines based on available funds, fraud signals and other checks. The answer travels back the same route, usually within moments, and your store shows the shopper the result.
An approval is not the same as money arriving in your account. Charges are typically captured and then settled in batches, and the timing depends on your provider and your bank. Refunds, partial captures and chargebacks each create their own later steps. Knowing this chain makes it easier to read processing statements and error messages and to see where a problem sits.
Key Takeaways
- A payment gateway passes card details between your checkout and the banking system, but the money itself usually settles into a separate merchant account.
- Each card payment passes through several parties, including the gateway, the processor, the card network and the shopper's issuing bank, so a decline can start at any of them.
- Gateways differ in whether they host the card form for you or send card data through your own server, and that choice changes how much compliance work falls on your store.
- Fees vary by provider, card type, country and currency, so compare the total cost on a sample order rather than the headline rate alone.
- Chargebacks happen after a payment has settled, so keep order records and shipping proof in case a customer disputes a charge.
The steps between checkout and your bank account
Each card payment moves through a fixed sequence of steps, even though the shopper only sees a loading spinner. The table below lists the usual order and which party handles each step. Exact labels differ between providers, but the chain is broadly the same across most online stores.
| Step | What happens | Who handles it |
|---|---|---|
| 1. Card details entered | Card number, expiry and security code are collected on your page or on the gateway's hosted form | Gateway |
| 2. Authorization request | Card data and amount are sent to the processor | Gateway and processor |
| 3. Network routing | The request passes through the card network to the issuing bank | Card network |
| 4. Issuer decision | The bank approves or declines based on funds and fraud checks | Shopper's issuing bank |
| 5. Response returned | An approval or decline code travels back to your checkout | Gateway |
| 6. Capture | The approved amount is confirmed as a charge, often when the order ships | Your store, through the gateway |
| 7. Settlement | Funds are paid into your merchant account, minus fees | Acquiring bank |
Some stores capture payment at the moment of purchase, while others authorize first and capture later. An authorization places a hold on the shopper's available funds without moving the money. If you capture after shipping, a cancelled order may need to be voided rather than refunded, and the two actions show up differently on statements.
Settlement is the step that most often surprises new sellers. Funds may arrive in daily or weekly batches, and the amount deposited is usually lower than the sale total because fees are taken first. Your processing report should show gross sales, fees, refunds and the net deposit, so you can match each batch against your orders.
Who is who: gateways, processors and merchant accounts
The names in this area overlap heavily. A payment processor moves transaction data between your gateway and the card networks. The acquiring bank is the bank that holds your merchant account and receives settlement. The issuing bank is the shopper's bank, the one that approved or declined the card. Card networks such as Visa and Mastercard set the rules that all of these parties follow.
Some providers offer a single account that bundles the gateway, processor and merchant account. These are often called payment service providers or aggregators. They can be quicker to start with because one agreement covers everything, but the funds may sit in a pooled account under the provider's name rather than your own. Others let you connect a separate gateway to a merchant account you hold directly with a bank. That setup can offer more control over settlement and switching providers, though it usually involves more paperwork.
Before you choose, check whose name appears on the merchant account, where settlement funds are paid, and what happens to your funds and your transaction history if you leave the provider. Ask whether you can export your data and how long held funds take to release. These answers matter more over time than the first month's setup screen.
Hosted payment pages, direct integrations and card data
How a gateway receives card details changes how much compliance work your store carries. With a hosted payment page, the shopper is sent to, or shown, a form run by the gateway. Card numbers never touch your server. With a direct integration, your own checkout collects the card number and passes it to the gateway through an API. That gives you more control over the design, but card data passes through your systems, which brings more responsibility.
Card data handling is governed by the Payment Card Industry Data Security Standard (PCI DSS), which the PCI Security Standards Council publishes. Stores complete a self-assessment questionnaire, and the one that applies depends on how card data flows through their setup. Using a hosted form usually narrows the questionnaire, while a direct integration usually widens it. Your gateway's documentation should state which option it supports and what it expects from you.
Many gateways also use tokenization, which swaps the card number for a random code that is useless outside that gateway. Stored cards for repeat customers are often kept as tokens. Some stores also use 3-D Secure, an extra verification step where the shopper confirms the payment with their bank, often through a one-time code or app prompt. Support for these features varies by provider, so check them before you commit.
What gateways charge and how to compare the total cost
Gateway pricing has several layers, and the amount you pay depends on your sales volume, average order size, the cards your customers use, the countries you sell into and the currencies you accept. Common line items include a per-transaction fee, a percentage of each sale, a monthly or platform fee, setup costs, refund fees, chargeback fees and currency conversion charges. Some providers add higher rates for international or premium cards. Because these vary, no single figure applies to every store.
The most reliable comparison is to run a sample month through each provider's pricing terms. Take your typical order value, your share of international customers and your expected refund rate, then total every fee that would apply. A low headline rate can cost more than a higher rate with fewer add-ons, so the total is what matters. Look at the pricing page and the terms together, since extra charges often appear only in the fine print.
Read your first processing statement closely after launch. Check that the fees match the schedule you agreed to, and note any charges you did not expect. Asking the provider to explain a line item in writing is a reasonable step, and it gives you a record if the fee needs to be questioned later.
Why card payments get declined and what chargebacks involve
A decline can come from many places. The issuing bank may lack funds, flag the transaction as suspicious or reject a card that has expired. Your gateway may also apply its own checks, such as address verification, which compares the billing address with the one on file at the issuer, and the card security code check. Many stores set fraud rules, for example blocking orders from certain countries or limiting repeated attempts. Each rule can stop a legitimate customer, so review your decline reports to see whether the rules are catching the right orders.
A chargeback happens when a cardholder disputes a charge with their issuing bank. The bank may reverse the payment while the dispute is reviewed, and the reversed amount, along with a fee, is taken from your account. You can usually respond with evidence such as delivery confirmation, order details and customer messages. Each card network sets its own time window for responding, and missing it generally means losing the dispute. Your provider's dispute page should explain the steps and the time window that applies to you.
Keeping clean order records reduces the impact of both declines and chargebacks. Save the billing details, shipping proof, customer communications and any authorization codes for each sale. Those records are the material you would send if a dispute reaches the review stage.
Frequently Asked Questions
Do I need a payment gateway and a merchant account both?
Usually, yes, though one provider may supply both. The gateway handles the connection and the card data, while the merchant account is where your sales are deposited. Some bundled providers combine the two into one agreement, so read the terms to see whether funds sit in an account in your name or in a pooled account held by the provider.
Why does my store show an approved payment, but the money has not arrived?
Approval only means the issuing bank agreed to the charge. The funds are typically captured and then settled in batches, which can take several days depending on your provider. Your processing report should show when each batch is expected, along with the fees taken out before the deposit.
Does using a hosted payment page mean I do not have to follow PCI DSS?
Not entirely. A hosted form usually reduces the scope of your self-assessment questionnaire because card numbers do not pass through your server. You may still have obligations for your website and checkout pages. Ask your gateway which questionnaire applies to your setup and what it expects from you.
What should I keep if a customer files a chargeback?
Keep the order confirmation, the billing and shipping details, proof of delivery, any messages with the customer and the authorization record. Respond within the time window your provider and the card network set. Your dispute portal should list the evidence it accepts and the format it needs.