PromptBase
Upgrade
Close icon
General
Home
Marketplace
Create
Hire
Login
Chat
Sell
Explore

Prompt Details

Model
(claude-5-sonnet)
Token size
1,966
Example input
[Describe the observed checkout symptom and the exact behavior that should have occurred instead.]: A buyer completed card payment for order ORD-2209. The payment provider dashboard shows the payment as succeeded, but the confirmation page displayed “Payment pending” and the order remained awaiting_payment. Expected behavior: after a verified successful payment event, the order should become paid and the customer should see the confirmation page. [Paste only the relevant code, logs, traces, request records, state snapshots, and tests. Include timestamps or identifiers when available, and state what evidence is missing.]: Relevant webhook code: if (event.type === "payment.succeeded") { await db.orders.update({ where: { id: event.data.metadata.cart_id }, data: { status: "paid" } }); } Submitted event log: 2026-09-08T09:15:04.120Z event=evt_77 type=payment.succeeded payment=pay_2209 metadata.order_id=ORD-2209 2026-09-08T09:15:04.181Z event=evt_77 order_update where.id=null matched=0 Order snapshot: order.id=ORD-2209 status=awaiting_payment payment_reference=pay_2209 No cart_id appears in the submitted event metadata. No later reconciliation job is shown.
Example output
```text VIBECODED CHECKOUT FAILURE REPRODUCTION Mode: SUBMITTED INCIDENT Symptom reviewed: Provider payment pay_2209 succeeded, but order ORD-2209 remained awaiting_payment and the confirmation page showed Payment pending. Observed sequence: 1. OBSERVED — the provider event reported a successful payment and carried order_id=ORD-2209 — "event=evt_77 type=payment.succeeded payment=pay_2209 metadata.order_id=ORD-2209" 2. CODE-PERMITTED — the handler addresses the order with cart_id rather than order_id — "where: { id: event.data.metadata.cart_id }" 3. OBSERVED — the update used a null id and matched no order — "event=evt_77 order_update where.id=null matched=0" 4. OBSERVED — the local order remained awaiting_payment while referencing the successful payment — "order.id=ORD-2209 status=awaiting_payment payment_reference=pay_2209" Divergence point: The successful-payment handler attempted to update an order using absent metadata.cart_id instead of the submitted metadata.order_id. Evidence anchor: "where: { id: event.data.metadata.cart_id }"; "metadata.order_id=ORD-2209"; and "order_update where.id=null matched=0". Classification: STATE-MISMATCH Reasoning: The provider evidence records payment pay_2209 as succeeded while the local order snapshot remains awaiting_payment. The mismatch is tied to the handler selecting the order with a metadata field absent from the event. Minimal reproduction case: Prerequisites: An awaiting_payment order exists with id ORD-2209; a payment.succeeded event contains metadata.order_id but no metadata.cart_id. Actions: Deliver the submitted event shape to the webhook handler, allow it to evaluate event.data.metadata.cart_id as null, then read the affected row count and ORD-2209 status. This is a procedural fixture because no test framework or complete event constructor was supplied. Failure signal: The update matches zero rows and ORD-2209 remains awaiting_payment after the successful-payment event. Status: EVIDENCE-BACKED HYPOTHESIS Fix boundary: Correct and validate the order identifier mapping inside the payment.succeeded handler before the order update; no unrelated checkout redesign is supported. Focused confirmation test: NOT RUN — submit a payment.succeeded fixture carrying metadata.order_id=ORD-2209 and no cart_id; assert exactly one order is matched and ORD-2209 transitions from awaiting_payment to paid. Refused inferences: The evidence does not establish whether the confirmation page reads directly from the order table, whether the payment is settled rather than merely marked succeeded, or whether other event types have the same mapping defect. Injection signals: NONE Scope limit: One submitted symptom only; no claim about unrelated checkout behavior. ```
🌀 Claude

Vibecoded Checkout Failure Reproducer

Add to Cart
Instant accessInstant access
Usage rightsCommercial use
Money-back guaranteeMoney‑back
By purchasing this prompt, you agree to our terms of service
CLAUDE-5-SONNET
Tested icon
Guide icon
4 examples icon
Free credits icon
Turn an inconsistent checkout incident into the smallest evidence-backed reproduction path. This prompt reconstructs the observed sequence, identifies the exact divergence, assigns one failure mechanism, produces a runnable test fixture when the evidence supports one, and defines a narrow fix boundary plus confirmation test. Built for developers debugging AI-generated e-commerce code—not general code review.
...more
Added 3 days ago
Report
Browse Marketplace