Check 45.10 · UX and conversion

Test purchase and booking journeys

Test the purchase or booking journey end to end: case matrix, test-mode payments, test script, post-order checks and Playwright.

Priority
Important
Difficulty
Intermediate
Estimated time
1 day, then 1 h after each release
Free, no account: your progress is saved in this browser.

Ask an AI to check this point on your site

Opens the assistant with a ready-made question: this check, its goal and your site URL.

For Gemini, Copilot or another assistant, copy the question. The link opens the chosen service directly: nothing goes through this site.

In short

Testing the purchase or booking journey means placing a complete order or booking yourself, from the product page or service page to the confirmation email, in every combination that matters: device, payment method, delivery method, account or guest, promo code. The task produces a case matrix, a completed test script and, if possible, an automated test that runs every day. Once it is done, a checkout failure is discovered the same day, not through a drop in revenue.

Why it matters

The checkout is the part of the site that makes money, and the one that breaks most quietly. A plugin update, a theme change, a new cookie banner or a change at the payment provider is enough to block one specific case: card payment on mobile Safari, delivery to a pickup point, a booking on a Sunday. The other cases keep working, sales drop without any alert, and nobody knows why.

The journey does not end at payment. Customers expect a confirmation email, an invoice, a slot reserved in the calendar; the merchant expects an order in the back office, stock decremented and a purchase counted once in the analytics tool. Each of these steps can fail on its own.

This is also where traffic earned through search and through AI assistants converts. A visitor who comes from a ChatGPT answer with a precise purchase intent is lost if the checkout is blocked.

What it improves

  • Revenue Partial failures are detected and fixed before they cost weeks of sales.
  • Conversion rate The friction spotted during testing (unnecessary field, fees revealed too late, unclear error) feeds the reduce friction (opens in a new tab) task.
  • Data reliability Purchases and bookings are counted once, with the right value, which makes conversions from SEO and AI readable.
  • Customer service Fewer ghost orders, double bookings and missing emails.
  • Rankings No direct effect.

How to check

The minimal test, in fifteen minutes, on a smartphone in private browsing and on 4G:

  1. Open your best-selling product or service from a Google result, like a visitor.
  2. Add it to the cart or choose a slot, then go all the way to the confirmation page, with a test payment method or an offline method (bank transfer, payment on site).
  3. Check that the confirmation email arrives, that the order or booking appears in the back office, and that there is a single purchase event in Google Analytics 4 (GA4).

If any of these steps gets stuck, or if you cannot test without actually paying, follow the full method.

How to implement

The examples follow two fictitious businesses: Thé des Lisières (an online tea shop) and Plomberie Garnier (a plumber in Nantes who takes appointments online).

Step 1 — Build the case matrix

List the variables of the journey, then keep the combinations that account for most sales and those that often break. There is no need to test every combination: aim for 10 to 20 cases.

Variable Values to cover
Device and browser Chrome Android, Safari iPhone, Chrome and Firefox desktop
Customer Guest, new account, logged-in customer
Cart One item, several items, discounted item, valid and invalid promo code
Delivery or slot Home, pickup point, collection; for a booking: same-day slot, distant slot, last available slot
Payment Card accepted, card declined, card with strong authentication (3D Secure), PayPal, offline payment
Context Cookie banner declined, other language or currency, foreign delivery country

Sources for choosing: the breakdown of sales by device and by payment method in the back office, and the drop-off reports (see analyze drop-offs (opens in a new tab)).

Step 2 — Prepare an environment without real money

Never test with a real card in production: Stripe's agreement, for example, explicitly forbids it. Three options, from the safest to the most realistic:

  • Staging: a copy of the site, password-protected, connected to the payment provider's test keys. See protect staging (opens in a new tab).
  • Production with an offline payment method restricted to administrators (bank transfer, check, payment on site), then cancel the order.
  • Production in the provider's test mode, when the platform allows it without blocking real customers. This is not the case everywhere: on Shopify, customers cannot place real orders while a provider is in test mode.

Test cards published by Stripe, to be used with the test keys, a future expiry date and any three-digit code:

Case Number
Payment accepted (Visa) 4242 4242 4242 4242
Generic decline 4000 0000 0000 0002
Insufficient funds 4000 0000 0000 9995
Strong authentication required, successful 4000 0000 0000 3220

PayPal provides a sandbox environment with fictitious buyer and seller accounts. Other providers publish their own numbers: refer to their documentation.

Step 3 — Run the test script

One row per case in the matrix, to fill in at each test campaign:

No. Case Device Steps Expected result Actual result Verdict Screenshot or ticket
1 Guest, 1 item, card accepted Safari iPhone Product page > cart > checkout > payment Confirmation page, email within 5 min As expected OK —
2 Invalid promo code Chrome Android Enter “NOEL25” Clear message, total unchanged Message in English To fix #212
3 3D Secure card Chrome desktop Payment > authentication window Return to confirmation Return to empty cart Blocking #213
4 Boiler appointment, last slot Safari iPhone Choose slot > contact details > confirm Slot reserved, calendar invitation Slot still offered Blocking #214

Fictitious values. At each step, also note what gets in the way without blocking: shipping costs discovered on the last screen, mandatory account creation, a phone field that rejects spaces, a keyboard that hides the button. See test forms and conversions on mobile (opens in a new tab).

Step 4 — Check what happens after confirmation

Check Where Expected
Customer email Test inbox, spam folder included Received, correct amount and address, working links
Back office List of orders or bookings Correct status, stock decremented, slot reserved
Internal notifications Team inbox, scheduling tool Received
Measurement GA4, Admin > Data display > DebugView, with Tag Assistant A single purchase, transaction_id present, correct value and currency
Return from the payment provider Confirmation page Back on your domain, no error, session source preserved
Cancellation and refund Back office Possible, email sent, stock restored

Purchase tracking is covered in detail in track purchases (opens in a new tab). A purchase counted twice is fixed with fix duplicate conversions (opens in a new tab).

Shopify

Versions Shopify admin, all plans, November 2026.

  • Test mode: Shopify's Bogus Gateway simulates a transaction; Shopify Payments has its own test mode. Test orders are not charged and do not appear in payouts or reports. Testing a payment provider requires a paid plan.
  • Limitation: while a provider is in test mode, real customers cannot place orders. Test outside selling hours, or on a development store.
  • After the test: turn off test mode, cancel and archive the test orders.
  • Theme: duplicate the theme and test the copy in preview before publishing a change that affects the cart.

WordPress

Versions WordPress 6.4 and later, WooCommerce 9 and 10, November 2026.

  • WooPayments: Payments > Settings, tick the option to enable test mode, confirm, save. Test mode uses the real account at no cost; use the test cards from the WooPayments documentation.
  • Stripe or PayPal plugin: each has its own test mode or sandbox in WooCommerce > Settings > Payments.
  • Offline payment: enable “Direct bank transfer” or “Cash on delivery” for a test in production, then disable it or restrict it to administrators with a payment rules plugin.
  • Critical pages: check that the Cart, Checkout and My account pages are excluded from the page cache (WP Rocket, LiteSpeed Cache and W3 Total Cache generally do this by default).

PrestaShop

Versions PrestaShop 8 and 9.

  • Staging or maintenance mode with your IP address allowed: Shop Parameters > General > Maintenance.
  • Test payment: the check or bank wire payment modules let you confirm an order without a transaction. Card modules (Stripe, PayPal, Mollie, etc.) have a test mode in their configuration.
  • After the test: set the order to the “Canceled” status to restore the stock.

Magento

Versions Magento Open Source and Adobe Commerce 2.4.

Enable “Check / Money order” in Stores > Configuration > Sales > Payment Methods for an order without a transaction, restricted to a test country if needed. Payment extensions (Braintree, Stripe, PayPal) are set to sandbox mode on the same screen. Flush the cache (System > Cache Management) after each configuration change.

Laravel

Versions Laravel 12 and 13, Laravel Cashier (Stripe).

Put the test keys in the staging .env, never the production keys:

STRIPE_KEY=pk_test_...
STRIPE_SECRET=sk_test_...

Stripe webhooks (payment succeeded, failed, refunded) often trigger the email and the stock update: test them locally with the Stripe CLI (stripe listen --forward-to localhost/stripe/webhook) and check that each case in the matrix produces the right status in the database.

Step 5 — Automate the critical journey

An automated test replays the most important case every day and alerts you as soon as it fails. Playwright, which is free, drives a real browser:

npm init playwright@latest
// tests/parcours-achat.spec.ts
import { test, expect } from '@playwright/test';

test('guest purchase up to the payment choice', async ({ page }) => {
  await page.goto('https://staging.example.com/thes/sencha-fukamushi/');
  await page.getByRole('button', { name: 'Add to cart' }).click();

  await page.goto('https://staging.example.com/panier/');
  await expect(page.getByText('Sencha Fukamushi')).toBeVisible();
  await page.getByRole('link', { name: 'Checkout' }).click();

  await page.getByLabel('Email').fill('[email protected]');
  await page.getByLabel('Postal code').fill('44000');
  await expect(page.getByText('Shipping')).toBeVisible();
  await expect(page.getByRole('button', { name: /Pay/ })).toBeEnabled();
});

Run it with npx playwright test, locally and then in your continuous integration or a scheduled job. Adapt the labels to those on your site. Stopping the test before the real payment lets you run it in production; the full payment is tested on staging with the test cards. See integrate SEO, performance and accessibility tests into CI/CD (opens in a new tab).

Good to know: for a booking, add a case that books the last available slot twice in a row, from two browsers. Double booking is the costliest error in appointment systems.

When to test

  • After every update of the CMS, the theme, or a payment, shipping or cookie plugin.
  • Before a peak period (sales, holidays, heating season).
  • The full test script every month; the automated test every day.

Common mistakes

  • Testing only on your own computer, logged in as an administrator: caching plugins, prices and sometimes payment methods differ for an anonymous visitor on mobile.
  • Stopping at the confirmation page without checking the email, the back office and the measurement.
  • Forgetting to turn off test mode, or leaving a test payment method visible to customers.
  • Never testing declines: card declined, expired promo code, slot already taken. Error messages are what lose customers.
  • Leaving test orders in the statistics: they distort revenue and the conversion rate.
  • Testing once, at launch: the checkout changes with every update.

Frequently asked questions

How can I test my store's payment without actually paying?

Use your payment provider's test mode with its published test cards, for example 4242 4242 4242 4242 at Stripe, on a staging site or a development store. Failing that, enable in production an offline payment method restricted to administrators, then cancel the order. Never use a real card in test mode: providers forbid it and the transaction distorts the statistics.

How often should the checkout be tested?

Test the checkout after every update of the CMS, the theme, or a payment, shipping or cookie plugin, and before every peak period. Run the full test script once a month. An automated Playwright test that replays the main journey every day up to the payment choice detects failures between two manual campaigns.

Should the purchase journey be tested separately on mobile?

Yes, on a real smartphone and not just by shrinking the browser window. A keyboard that hides the confirm button, bank authentication that opens another app, address fields that autofill does not recognize or a cookie banner that is too tall only show up on the device. Cover at least Safari on iPhone and Chrome on Android.

What should I check after a test order?

After a test order, check the customer's confirmation email, spam folder included, the order and its status in the back office, the decremented stock or reserved slot, internal notifications, and a single purchase event in the analytics tool with the right ID, value and currency. Also test cancellation and refund, then remove the order from the statistics.

Updated on

Topic checklist (PDF)

And now?

In the “UX and conversion” topic

  1. Clarify the value proposition and offers
  2. Make CTAs clearly identifiable
  3. Simplify navigation and forms
  4. Reduce friction
  5. Add reassurance elements
  6. Display contact details and pricing if possible
  7. Add authentic social proof
  8. Test buttons and forms
  9. Test internal search
  10. Test purchase and booking journeys
  11. Analyze drop-offs
  12. Analyze SEO and GEO landing pages
  13. Test CTAs
  14. Optimize landing pages
  15. Measure business results