freshyo/docs/test-cases/payments-refunds.md
2026-10-11 18:21:24 +05:30

3.3 KiB
Raw Blame History

Payments and refunds — readiness and guarded current behavior

Status: Current customer UI disables online payment; gateway service code includes stubs. Only PAYMENT-01–03 are current release checks. Remaining cases are conditional readiness/security coverage for an approved sandbox implementation, not supported happy paths today. Never charge or refund production money.

ID Priority Action / input Expected result
PAYMENT-01 P0 Attempt online selection in current UI. Clearly unavailable/Coming Soon; no misleading successful online checkout.
PAYMENT-02 P0 Place COD single/split checkout. No gateway call; COD status and group money correct.
PAYMENT-03 P0 Call unfinished online API in approved isolated fixture. No false paid state, charge or misleading merchant ID; unsupported path explicit.
PAYMENT-04 P0 Once enabled, sandbox single/split order payment. One authoritative group amount in INR minor units; intended siblings paid once.
PAYMENT-05 P0 Create merchant payment for U2's/missing/cancelled order. Ownership/legal-state denial; no merchant payment created.
PAYMENT-06 P1 Recreate pending merchant payment/retry request. Supported existing pending record reused; no duplicate gateway order.
PAYMENT-07 P0 Forged/empty/malformed signature or mismatched IDs. Verification denied; order remains unpaid.
PAYMENT-08 P0 Valid callback for another customer's payment. Ownership still enforced beyond signature validity.
PAYMENT-09 P0 Amount/currency tampering and UI-supplied payable. Gateway/server authoritative group amount verified.
PAYMENT-10 P0 Duplicate callback, replay, success webhook after failure. Approved monotonic/idempotent status, no duplicate fulfillment.
PAYMENT-11 P1 Decline/cancel/timeout/background gateway flow. Accurate pending/failed state; usable retry/cart and no false success route.
PAYMENT-12 P0 Mark other user's/successful payment failed. Ownership/legal transitions enforced; paid order not reverted arbitrarily.
PAYMENT-13 P1 Gateway committed, DB update or response fails. Reconciliation strategy; no repeated charge on blind retry.
PAYMENT-14 P0 Refund authorized paid cancelled order partially/fully. Never exceeds net collected amount; correct status and intended recipient.
PAYMENT-15 P0 Refund COD/unpaid/foreign-region/foreign-user order. Appropriate denial; no money transfer or false refund ledger.
PAYMENT-16 P0 Repeat/concurrent refund and duplicate webhook. Exactly one approved refund; cumulative amount ≤ collected.
PAYMENT-17 P1 Refund pending/fails/settles late, then customer refreshes. Accurate ledger/status; failure doesn't claim settled money.
PAYMENT-18 P1 Partial split cancellation and fees/coupon allocations. Approved refundable amount derives from persisted charges, not current promotions.
PAYMENT-19 P0 Secrets/card/payment payload in logs/API. Credentials redacted; only required nonsecret response fields.
PAYMENT-20 P1 Zero-amount order and rounding edge. Defined no-charge gateway path; no invalid minor-unit amount.

Record sandbox transaction IDs in private evidence only. Refund allocation, successful-payment reversal and group settlement policy require approval before execution.