How it works
Most stores split checkout into a few clear steps. The names change from app to app, but the flow is almost always the same. Click through each step to see what happens there and what to test.
What happens
The shopper reviews items, changes quantities, removes things or saves them for later, and enters a coupon.
Classic bug
Total does not refresh after removing an item.
What to test
- Quantity limits (min 1, max stock)
- Remove and save for later update the totals
- Coupons: valid, expired, used twice, lower/upper case
- Cart survives closing the app and logging in on another device
- Cart. The shopper reviews items, changes quantities, removes items or moves them to “Save for later”, and enters a couponCouponA code that gives a discount or free shipping, usually with rules like expiry and minimum order.Open in glossary →. The cart shows a running subtotal.
- Shipping. A delivery address is typed in (a guest, someone buying without an account) or picked from saved addresses (a logged-in user). The country often changes the shipping price and tax.
- Delivery. The shopper picks standard, express or store pickup. Each option has its own price and estimated delivery date.
- Payment. The shopper pays by card, Apple Pay, Google Pay or PayPal. The store doesn’t talk to the bank itself: a payment gateway (a company such as Stripe, Adyen or Braintree) takes the payment and answers “approved” or “declined”, sometimes after an extra bank check called 3-D Secure3-D SecureAn extra step where the card's bank asks the shopper to confirm an online payment.Open in glossary →.
- Review. One last summary: items, address, delivery, payment method and the final total. Some apps merge this into the payment step.
- Confirmation. The order number appears, the cart is emptied, stock is reserved, and a confirmation email or push notification goes out.
Cart behaviors to know
The cart looks like a simple list, but it has a lot of rules:
- Quantity. The minimum is 1 (going lower should remove the item or be blocked). The maximum is usually the available stock, sometimes a per-customer limit (“max 2 per order”).
- Remove and save for later. Both must update the item count, subtotal, discounts and shipping instantly.
- Stock limits. Items can sell out while they sit in the cart. The app should warn (“Only 1 left”) and stop you from paying for something that’s gone.
- Persistence. A logged-in user’s cart is stored on the server, so it should follow them across sessions and devices. A guest cart is usually kept in a cookieCookieA small piece of data a website stores in your browser, for example to keep you logged in.Open in glossary → or on the device. This is state persistenceState persistenceWhether the app remembers what the user did after navigating away, rotating, or restarting.Open in glossary →, and it’s a classic source of bugs.
- Guest vs logged-in merge. If a guest adds items and then logs in to an account that already has items, the two carts must be merged according to the rules (combine quantities? keep the newest?) without losing or duplicating anything.
The price math
Every total on a checkout screen is a small calculation. Your job is to know the formula, so you can calculate the expected total yourself.
| Line | What it is | What to watch for |
|---|---|---|
| Subtotal | Sum of price × quantity for every item | Updates after every change, including removals |
| Discounts / coupons | Percentage (10% off) or fixed amount ($5 off), sometimes with a minimum order | Applied once, stacking rules, expiry date, upper/lower case codes |
| Shipping | Flat price, by weight or by country; often free over a threshold | Is the threshold checked before or after the discount? |
| Tax / VAT | In the US, sales tax is added at checkout. In the EU and UK, prices usually already include VAT (their sales tax) | Correct rate per country or state; tax on the discounted price |
| Rounding | Money is shown with 2 decimals (none for currencies without cents, like the Japanese yen) | No 59.900000001, no totals that are off by one cent |
Try it yourself. Work out each total on paper, then check your answer:
Price calculator check
Work out the expected total before you look at the app. That is your expected result.
Cart
- 2 × T-shirt$14.50 each
- 1 × Baseball cap$22.00 each
Rules
- Coupon SAVE10: 10% off the items
- Shipping $4.99, free when the total after discounts is $50 or more
- Prices include tax
Check this part
Subtotal $54.00, coupon 10% off, free shipping when the total after discounts is $50 or more. Shipping is $4.99. What is the correct total?
A guest adds a phone case to the cart, then logs in to an account whose saved cart already holds a cable. What should the cart contain?