Mission 01 Mission 01 Payment Failure Handling Lab Guide
📥 Lab input
- •
day9_payment_process.js
💾 Lab output
- •
day9_failure_scenarios.md
1. Story and lab background
Work out extreme exceptions where the browser closes unexpectedly while the payment is being sent, or the outside payment provider enters maintenance and processing is blocked. When users face the fear "did my money vanish without the purchase going through?", prepare a reassuring failure matrix that gives a clear message — "no money was taken and no payment was made" — and steps to follow.
2. Learning goals
- Predict possible anxiety points and errors when users leave or the window closes during a payment.
- Write error recovery messages that clearly state whether money was taken, removing the fear of double payment.
- Use a failure matrix to design a consistent payment failure guide.
3. Codex AI Prompt Card
Copy the prompt below, paste it into the Codex Client AI chat and get guidance.
Predict situations where problems may happen during payment, and suggest what to tell users. In particular, return a response spec (Failure Scenarios) with double-payment prevention guidance for when the payment provider window closes or there's a maintenance conflict.