Share Pack
Stripe checkout 422 after agent-generated patch
A payment request started failing with 422. The replay showed a missing idempotency header after a refactor.
Scenario
Use this pack when checkout works locally, then fails in staging after an AI-assisted change.
What this pack includes
- A reproducible cURL command for the failing request
- The likely root cause summary
- A related Stripe mock template for isolating the frontend
- Suggested replay flow after the fix
Use this pack
- Install APXY and start the proxy.
- Reproduce the failing request or replay it with the included cURL command.
- Use APXY to inspect headers and compare the failing request against a successful one.
- Mock the endpoint if you need to unblock frontend work while you patch the bug.
Repro command
curl -X POST https://api.stripe.test/checkout -H 'Authorization: Bearer sk_test' -d '{"amount":4900}'