Skip to main content

Claude/ChatGPT Prompt to Build a 3-Step E-commerce Checkout Flow

Design a friction-minimised 3-step checkout UI with express pay, trust badges, and error recovery for higher conversion.

Fill in the placeholders

Edit the values, then copy your finished prompt.

Your Prompt
prompt.txt

                                

What this prompt does

This prompt makes the AI a senior conversion-focused frontend engineer specifying a 3-step checkout tightly enough to build, and it asks for working component code rather than pseudocode. The steps are cart review with quantity edit, discount field, and live total recalculation; shipping and billing with address autocomplete, saved addresses, and a guest path; and payment supporting express wallets plus card with inline validation and decline recovery. A persistent progress indicator, sticky order summary, trust badges, and an abandoned-step recovery hook round it out. The [wallets] placeholder sets express options, and [cart_size] frames the typical order.

The structure works because checkout is where money quietly leaks, and one confusing step or a swallowed card error loses the sale. The prompt forces decline recovery to be explicit, since that is where most lost revenue hides, and it requires accessible markup with labelled fields, an aria-live error region, and keyboard-navigable steps. The [stack] variable produces the checkout component files plus a state-flow note describing how step data persists between steps. The persistent progress indicator and sticky order summary keep the buyer oriented and reassured about the total at every step, removing the uncertainty about how much is left to do or what they will be charged that pushes people to abandon a cart mid-flow.

When to use it

  • Building or rebuilding a checkout to reduce abandonment
  • Supporting express wallets via [wallets] plus card payment
  • Designing for a typical [cart_size] and order pattern
  • You need explicit card decline recovery, not a swallowed error
  • Adding a guest path, saved addresses, and address autocomplete
  • Persisting step data with an abandoned-step recovery hook

Example output

You get the checkout component files plus a short state-flow note describing how step data is persisted between steps. Step one handles cart review with live total recalculation; step two handles shipping/billing with autocomplete, saved addresses, and a guest path; step three handles payment across your express wallets and card with inline validation and decline recovery. A persistent progress indicator and sticky order summary appear on every step, with trust badges and accessible markup throughout.

Pro tips

  • List the exact [wallets] you support; the payment step is generated around those express options plus card
  • Set [cart_size] to your real average so the order summary and copy match typical orders
  • Wire up step-three decline recovery first, since that is where most lost revenue hides
  • Keep [stack] accurate so the component files and the state-flow note fit your payment integration
  • Ask the model to detail the abandoned-step recovery hook, since resuming a saved checkout recovers otherwise-lost sales
  • Confirm the accessible error handling uses an aria-live region so screen-reader users hear validation failures

Frequently Asked Questions

Which express wallets does this support?
Whatever you list in `[wallets]`, with defaults like Apple Pay, Google Pay, and PayPal. The payment step is built around those express options plus standard card payment with inline validation.
Does it handle declined cards?
Yes. Step three includes clear decline recovery for card payments, which the prompt treats as a priority because that is where most lost checkout revenue hides. A swallowed card error loses the sale.
Is there a guest checkout option?
Yes. Step two includes a continue-as-guest path alongside saved addresses and address autocomplete, so users are not forced to create an account before completing their purchase.
Does it return real code?
Yes. It asks for working component code, not pseudocode, plus a state-flow note describing how step data persists between steps. Set `[stack]` so the files match your framework and payment setup.
Engr Mejba Ahmed

Need this built for real?

Engr Mejba Ahmed

AI Developer · Software Engineer

I'm Mejba — I design and ship production AI systems, automations, and full-stack apps. If you want this turned into a working solution for your team, let's talk.

More in E-commerce UI Prompts

Engr Mejba Ahmed

Engr Mejba Ahmed

Claude Code Expert · Online

👋

Hey there!

Quick Actions

WhatsApp Instant reply

Chat on WhatsApp

+880 1723 741224 · Instant reply

Popular Questions

Engr Mejba Ahmed is connected
Engr Mejba Ahmed is typing...
Engr Mejba Ahmed avatar

✉ Want me to follow up? Drop your email

Engr Mejba Ahmed avatar

📞 Connect Directly

Choose how you'd like to reach me

WhatsApp

+880 1723 741224

Email

[email protected]

✓ Details sent! I'll get back to you shortly.

Powered by OpenAI

335+

Blog Posts

25

AI Courses

63

Projects

Services & Expertise

Pricing & Process

Learning & Resources

Connect & Support