← QA Library
Chapter 16 / 19 · 7 min read

E-commerce and payment testing

Testing online shops end to end: catalogue, cart, prices, promotions, checkout, payments, refunds and integrations.

In an online shop every bug has a price: a broken checkout loses sales immediately, a wrong discount loses margin, a payment error loses trust. E-commerce testing follows the money and the customer through every step.

The customer journey

SearchProductCartCheckoutPaymentDelivery
Every step is a place where customers leave; test each one and the transitions between them.

Catalogue and search

  • Search finds products by name, synonyms, typos and product codes
  • Filters and sorting combine correctly and don't show empty results without explanation
  • Out-of-stock products, variants (size, colour) and their prices are correct
  • Product pages load fast and images work on mobile

Cart and prices

CheckWhy it matters
Prices, taxes and rounding match in cart, checkout, email and invoiceCustomers notice cents; accountants notice more
Quantity limits and stockSelling items you don't have creates refunds
Cart persists after login and on another deviceLost carts mean lost sales
Currency and regionCorrect currency, tax and shipping rules per country

Promotions

Promo rules are a classic source of expensive bugs. Use decision tables: minimum order value, expiry date and time zone, one code per order, exclusions for sale items, stacking with automatic discounts, usage limits per customer, and what happens to the discount when an item is returned.

Checkout and payments

Use the payment provider's test mode and test cards (Stripe, PayPal, Adyen and others publish them). Check:

  1. Successful payment with different methods: cards, wallets, local methods
  2. Declined card, insufficient funds, expired card
  3. 3-D Secure authentication passed, failed and abandoned
  4. Double-click on “Pay” and browser Back after payment — no double charges
  5. Lost connection during payment, and the provider's webhook arriving late or twice
  6. Order status, stock and confirmation email updated exactly once

After the purchase

Order history, cancellation, partial and full refunds, returns, invoices and delivery tracking are part of the product. Check that a refund updates the payment, the order, the stock and the customer's notification consistently.

Integrations

Shops connect to payment providers, warehouses, delivery services, CRM, analytics and marketplaces. Test what happens when one of them is slow or unavailable: the customer should get a clear message, and no order should be lost or duplicated. We walk through a full checkout test plan in How we test e-commerce checkouts.

Follow the money: every amount a customer sees must match what is charged, stored, refunded and reported.