A checkout page double-charges customers who double-click Pay, accepts garbage input and stores raw card numbers. Fix the UI and the API, match the design reference, and pass the end-to-end audit.
This is the practice version. Assessments always use a variant you have never seen.
Support tickets this week: "I clicked Pay twice and got charged twice", "the total is wrong", "nothing happens when payment fails".
#total (quantity × $149).#form-error (role="alert")
and sends no request.#status (aria-live); an API failure shows an
error in #form-error and Pay works again.server/routes.js): reject invalid payloads with 400, return 201 on create, and
never store the full card number.Use the Live Preview (Desktop / Tablet / Mobile, Console and Network). After you submit, a headless browser runs end-to-end flows, an accessibility audit (axe-core), console and server-error checks, and a layout check.