# Checkout that works: why carts are abandoned

> Why shoppers leave at the checkout, the fixes that keep them, and how to test your own checkout end to end with test cards on a phone and a desktop.

Published 2026-12-02, updated 2026-12-02. Source: https://witnessqa.com/learn/checkout-that-works/

About seven in ten carts never become an order. Some of that you cannot change. The rest is surprise costs, forced accounts, long forms and things that simply do not work. This guide covers what to fix and how to test the whole path yourself.

## Why people leave

The [Baymard Institute collects studies of cart abandonment](https://baymard.com/lists/cart-abandonment-rate), and the average across them is about 70%. A large share of those shoppers were only browsing and were never going to buy today. The rest had decided to buy and gave up at the checkout. Those are the orders you can win back.

The reasons they give are consistent from study to study:

- extra costs that appear late: shipping, taxes, fees;
- being made to create an account;
- a checkout that is too long or too complicated;
- not being able to see the total up front;
- not trusting the site with card details;
- delivery that is too slow;
- errors and crashes;
- the payment method they wanted is missing.

Price is rarely the cause at this stage. The shopper already accepted the price when they added the product to the cart. What stops them is surprise, effort or doubt.

## Remove the surprises

Show the full cost as early as you can. If shipping depends on the address, give an estimate in the cart, or state your rates plainly. Keep an order summary visible on every step, with the items, shipping, taxes, discounts and the total, and make sure it does not change at the last step.

A total that rises on the payment page reads as a trick, even when it is only tax.

## Remove the effort

- **Guest checkout.** Let people buy without a password. Offer to create an account after the order, when the only extra field is the password itself.
- **Fewer fields.** Every field is a reason to stop. Use one field for the full name. Assume the billing address is the shipping address, with a box to change it. Drop "company" and "address line 2" or mark them optional.
- **Say why you ask.** A phone number field makes people wary. A short note, "only for delivery questions", settles it.
- **Autofill.** Browsers can fill a whole address in one tap, if each field has the right [`autocomplete` value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/autocomplete). This matters most on a phone.
- **The right keyboard.** `type="email"` shows the @ key, `type="tel"` and `inputmode="numeric"` show digits.
- **Useful errors.** Say what is wrong next to the field, as soon as the shopper leaves it, and never clear what they typed.

## Remove the doubt

- **A clean page.** Take the main menu, banners and pop-ups out of the checkout. The shopper has decided. Everything that is not the form is a way out.
- **A step indicator.** "Shipping, Payment, Review" tells them how much is left. An unknown number of steps feels longer than three known ones.
- **Familiar payment methods.** Offer the methods your customers expect, including the wallets on their phone.
- **Signs of a real shop.** Delivery times, the returns policy and a way to contact you, linked near the pay button.

## Design for the phone first

Most shopping visits now happen on a phone, and a checkout built on a large monitor often fails there in small ways: a button under the keyboard, a field wider than the screen, a dropdown too small to tap. Go through your own checkout on a real phone, with one hand. Buttons should be large and well apart, text readable without zooming, and nothing should scroll sideways.

## Test that it actually works

Everything above is about friction. The costliest problems are plainer: a button that does nothing, a discount code that errors, a payment that fails on one browser. Nobody reports these. The shopper just leaves.

So test the whole path, the way a customer walks it:

1. Product page, with a variant chosen.
2. Search, and a category page.
3. Add to cart, change the quantity, remove an item.
4. A valid discount code, and an invalid one.
5. Checkout as a guest.
6. Sign-up, login and the account page.
7. Payment.
8. The confirmation page and the email.

Do it on a phone and on a desktop. They fail in different places.

### Paying without paying

Payment providers have a test mode with card numbers that are not real. [Stripe's test cards](https://docs.stripe.com/testing) are typical:

| Card number | What it does |
| --- | --- |
| 4242 4242 4242 4242 | Payment succeeds |
| 4000 0000 0000 0002 | Card is declined |
| 4000 0025 0000 3155 | Asks for extra confirmation (3D Secure) |

Use any future expiry date and any security code. Test all three cases. A declined card should show a clear message and let the shopper try again without retyping the address. A failed payment should never leave a paid-looking order behind.

Run these in test mode or on a staging copy of the shop, so no real order, stock change or email goes out.

## Keep testing

A checkout that worked last month can break today: a theme update, a new payment plugin, an expired certificate, a script from a third party. The first sign is usually a quiet drop in orders. Walk the path after every change to the site, and on a schedule in between.

This is the work WitnessQA does for you: it walks these flows on a phone and a desktop, with [test cards](https://witnessqa.com/docs/test-cards/), and reports each step that fails with a screenshot. A [free audit](https://app.witnessqa.com/audit) covers the public pages.

## Watch

- [Why Customers Abandon Checkout (And How to Fix It)](https://www.youtube.com/watch?v=LoaJKFqV_ew), IronPlane. A UX designer walks through a well-built checkout.
- [E-Commerce Checkout Best Practices, part 2 of 4](https://www.youtube.com/watch?v=TXQ7EI_0ruo), Snipcart. Older, and not tied to one shop platform.

## The checklist

The same steps as an agent skill: https://witnessqa.com/learn/checkout-that-works/skill.md

1. **Walk the whole path on a phone.** In a browser with a 390 px wide phone profile, go from a product page to the cart to the last checkout step. Every step works and nothing is wider than the screen.
   Verify: At each step the page loads without an error, the main button responds, and the page does not scroll sideways.
   WitnessQA checks: [mobile_overflow](https://witnessqa.com/docs/checks/#mobile_overflow), [mobile_viewport](https://witnessqa.com/docs/checks/#mobile_viewport), [dead_click](https://witnessqa.com/docs/checks/#dead_click), [error_page](https://witnessqa.com/docs/checks/#error_page), [page_error](https://witnessqa.com/docs/checks/#page_error)
2. **Show the full price early.** Shipping, taxes and fees are visible in the cart, or as soon as the address is known. The total does not rise at the last step.
   Verify: Compare the total shown in the cart with the total on the payment step. Any difference was announced before the payment step.
3. **Let people buy without an account.** Guest checkout is offered and is at least as prominent as signing in. Creating an account is an option after the order.
   Verify: Start the checkout signed out. The order can be completed without choosing a password.
4. **Ask only for what the order needs.** Remove optional fields or mark them clearly. One field for the full name, billing address the same as shipping by default, and a reason next to any field that looks unnecessary, such as phone.
   Verify: Count the fields a guest must fill in. Each is needed to deliver or charge the order, or says why it is asked.
5. **Make forms easy to fill on a phone.** Every field has a visible label, the right `autocomplete` value and the right keyboard: `type="email"`, `type="tel"`, `inputmode="numeric"` for card and postcode numbers.
   Verify: Read the form fields. Each has a label and an `autocomplete` attribute, and the browser offers to fill in a saved address.
6. **Explain errors where they happen.** A wrong entry shows a message next to the field that says how to fix it, and keeps everything already typed.
   Verify: Submit the form with an invalid email and an empty required field. Each gets a message beside it and the other fields keep their values.
   WitnessQA checks: [form_error](https://witnessqa.com/docs/checks/#form_error)
7. **Keep the checkout free of distractions.** The checkout shows the logo, the steps and the order summary. No main menu, no promotions, no pop-ups.
   Verify: Open the checkout. The header has no category navigation and nothing covers the form.
8. **Show where the shopper is.** A step indicator names the steps, for example Shipping, Payment, Review, and the order summary stays visible throughout.
   Verify: On each step, the indicator marks the current step and the summary lists the items, the costs and the total.
9. **Test discount codes.** A valid code lowers the total and says by how much. An invalid or expired code gets a clear message and changes nothing else.
   Verify: With write access, apply one valid and one invalid test code. The total and the message are right in both cases.
10. **Pay with test cards.** In the payment provider's test mode, an order goes through with a card that succeeds, a declined card shows a clear message and lets the shopper retry, and a card that needs extra confirmation completes.
   Verify: With write access and test mode, place an order with each kind of test card. Confirm the confirmation page, the message on decline, and that no failed payment creates an order.
   WitnessQA checks: [http_error_request_5xx](https://witnessqa.com/docs/checks/#http_error_request_5xx), [http_error_request_4xx](https://witnessqa.com/docs/checks/#http_error_request_4xx), [console_error](https://witnessqa.com/docs/checks/#console_error)
11. **Confirm the order.** After payment the shopper sees a confirmation page with the order number and gets an email with the same details.
   Verify: After a test order, the confirmation page shows an order number and the confirmation email arrives at the test address.