◉ AccessLens · AI QE Tutor
Prompt Lab · Module 1 · Founding cohort
PRACTICAL LAB / PAYMENT RELIABILITY & SECURITY

Payment API Quality Engineering Lab

Execute six controlled API scenarios against an isolated simulated payment service. Select a test oracle, inspect execution traces, report defects, and export evidence. Estimated 45–75 minutes.

Sandbox only. No real money, cards, accounts, or payment provider calls. The server executes fixed educational scenarios, not arbitrary user code. This is a simulated API runner, not a production payment gateway.

1 · API contract and invariants

POST /payments Authorization: Bearer <demo-token> Content-Type: application/json Idempotency-Key: <operation-key> { "orderId":"order_123", "amount":2500, "currency":"INR" } Documented rules: • amount is a positive integer (minor currency units) • each logical payment operation may charge at most once • retries using the same operation key must not double-charge • ambiguous provider outcomes must be reconciled • payment details are visible only to their owner NOT specified: • exact latency guarantee • universal success HTTP status • real provider settlement timing

The exercise uses deterministic simulated traces. Scenario fixtures intentionally contain seeded defects and healthy controls.

2 · Execute a QE test

3 · Evidence and skill assessment

Objective detection is based on selecting a relevant invariant and comparing it to a deterministic server trace. The scenario verdict is objective; the optional report below receives AI grading.

4 · AI evidence-based assessment

Run a scenario above first. Write a defensible defect analysis grounded in the server trace. Healthy controls should be reported as healthy, not falsely called defects. Three free AI assessments per browser per day; network abuse limits also apply.

5 · Next challenge

After finding defects, write an automated regression test that proves the invariant. For duplicate charges, assert on the ledger count and operation ID rather than just HTTP status. For ambiguous outcomes, assert eventual reconciliation. For ownership, verify that cross-user access does not reveal payment details.

Use AI QE Tutor to discuss your testing strategy, subject to its separate free-trial limits. Executing scenarios does not consume OpenAI API credits; AI assessment does.

Progress is stored only in this browser. Do not enter confidential or personal payment data. This lab does not award certification.