SR-015 — Checkout Review: Address, Delivery, and Payment Selection System Requirements
By Engineering Team•October 3, 2026•5 min read
| Metadata | Details |
|---|---|
| System Name | ui-application (Checkout screen) + shop-service — Checkout Review |
| Document ID | SR-2026-CKR-001 |
| Author | Engineering Team |
| Status | Approved |
Traces back to BRD-014 — Checkout Review: Address, Delivery, and Payment Selection.
Functional Requirements
Shared Screen, Two Entry Points
- FR-01 (One Controller/View for Cart and Buy Now): the Checkout screen MUST be rendered by the same
CheckoutController/CheckoutViewregardless of entry point; a cart-based entry MUST callgetCheckoutDetailswith no item parameters, and a Buy Now entry MUST call the identical query with{productId, variantId, quantity}supplied — the screen MUST NOT branch into two separate implementations for the two entry points. The underlying single-entry-point/synthetic-line resolution this depends on is SR-012 FR-04. - FR-02 (Order Items Card Is the Only Visual Difference): the Order Items card MUST source its lines from the cart on a cart-based entry and from the single resolved product/variant/quantity on a Buy Now entry; every other card on the screen (addresses, delivery-tier selector, order summary, payment-method selector, the sticky submit bar) MUST render identically regardless of entry point.
Address Review
- FR-03 (Independent Shipping and Billing Address Targeting): the screen MUST open a shipping-address sheet and a billing-address sheet as two independent actions, each listing the customer’s saved addresses and, on selection, updating only that role (shipping or billing) — selecting a shipping address MUST NOT alter the currently selected billing address, and vice versa, unless “billing same as shipping” is active (FR-05).
- FR-04 (Selection-Only at Checkout): the checkout address sheet MUST only let the customer select among their existing saved addresses — it MUST NOT offer an “add new address” action inline; adding, editing, or deleting an address happens only in the customer’s separate saved-address book, outside checkout.
- FR-05 (“Billing Same as Shipping” Toggle): toggling “billing same as shipping” MUST reuse the shipping address as the billing address without requiring a separate billing-address selection step, and MUST re-apply automatically if the shipping address is subsequently changed while the toggle remains on.
- FR-06 (Address Change Triggers a Full Requote): selecting a different shipping or billing address from the bottom sheet MUST re-call
getCheckoutDetailsin full, since a changed address can change tax, warehouse, or shipment fields in the response — the screen MUST NOT patch only the address display and leave the rest of the quote stale. - FR-07 (Shipment Pincode Is Independent of the Address Book): changing the shipping address MUST NOT change which shipment tiers are quoted — the quoted pincode MUST continue to come from the shopper’s region setting, not from the newly selected address, so the two pincodes can never silently disagree.
Delivery-Tier Selection
- FR-08 (Tier Selection Applies With No Network Call): selecting a delivery tier (Standard/Express) MUST apply immediately from already-fetched tier data — the screen MUST NOT issue a network call for a plain tier switch, since every tier already carries its own quoted price and ETA.
Payment-Method Selection
- FR-09 (Payment-Method Switch Re-Quotes Live): selecting a different payment method MUST re-query the server, since switching between Cash on Delivery and a prepaid method can change the quoted shipment price and the cash-on-delivery surcharge together. This is the UI-screen-level requirement for the live re-resolution SR-012 FR-09 already specifies server-side.
- FR-10 (No Payment Method Is Ever Selected Without Its Matching Price): the screen MUST show a recalculating state while a payment-method re-quote is in flight, and MUST NOT leave a newly tapped payment method visually selected while the price shown still reflects the previous method.
- FR-11 (Rollback on Recalculation Failure): if a payment-method re-quote fails, the screen MUST roll the selection back to the previously selected payment method and display an error, rather than leaving the new method selected with no valid price behind it.
Order Summary
- FR-12 (Fixed, Conditional Line Order): the order summary MUST render its lines in this fixed order, each line present only when applicable: Total Bill → Total Savings (if any) → Subtotal → Tax → Shipping → Cash-on-Delivery Charges (if any) → Round Off (if non-zero) → Total.
- FR-13 (Backend-Authoritative Totals, Client-Recomputed Tier-Dependent Fields): Total Bill and Total Savings MUST be taken verbatim from the backend response and MUST NOT be re-derived client-side; shipping cost, round-off, and the final total MUST be recomputed client-side per the currently selected tier, using the identical rounding formula the server used for the default tier.
Order Submission
- FR-14 (Minimal, Tamper-Resistant Submission Payload): tapping Place Order & Pay MUST submit only
{idempotencyKey, checkoutToken, paymentMethod, courierId}toorder-service— no address, pricing, or item content MUST be included, sinceorder-serviceresolves all of it server-side from the cached checkout session behindcheckoutToken. - FR-15 (Blocking Processing Overlay): while an order submission is in flight, the screen MUST display a full-screen processing overlay that blocks back-navigation, so a customer cannot navigate away from or re-trigger a submission that is already underway.
- FR-16 (Idempotent Retry on Submission Failure): a retried submission after a network failure MUST reuse the same idempotency key used on the original attempt, so a duplicate tap or retry is deduplicated server-side rather than creating a second order — relying on the storage-level guarantee in SR-012 FR-13/NFR-06.
Non-Functional Requirements
Consistency
- NFR-01 (No Client-Side Reimplementation of Server-Computed Totals): the screen MUST NOT independently re-derive a total the server already computed and returned (Total Bill, Total Savings) — only the tier-dependent fields named in FR-13 are client-recomputed, and only via the server’s own rounding formula. (Gap — the client locally re-derives the round-to-nearest-rupee formula for a non-default tier rather than the server supplying a per-tier total; already tracked as Technical Debt — Reusable Checkout Orchestration Gaps, TD-04, not duplicated here.)
- NFR-02 (Entry-Point-Specific Stale-Line Handling): the screen MUST reflect, not reimplement, the differentiated stale-SKU handling already specified server-side in SR-012 FR-05 — a stale cart line is skipped with a warning and checkout continues; a stale Buy Now line is a hard not-found error, since there is no cart row to fall back on.
Composition & Reuse
- NFR-03 (Single Shared Resolution Call): every data-fetch this screen performs (initial load, address change, payment-method re-quote) MUST go through the same shared
getCheckoutDetails/re-quote entry pointsshop-serviceexposes — the screen MUST NOT hold a second, screen-local resolution path for any of these cases, per the platform’s layered architecture standard. - NFR-04 (DTO-Based Submission): the order-submission call MUST pass a single structured payload (per FR-14), never positional parameters, per the platform’s coding standards.
Reliability
- NFR-05 (Submission Safety Is UI-Enforced, Not Just Server-Enforced): the blocking overlay (FR-15) MUST be treated as a UI-layer safeguard against double submission, complementary to — never a substitute for — the storage-level idempotency guarantee in SR-012 NFR-06; removing the overlay MUST NOT be considered safe on the reasoning that the server already deduplicates.
Data Ownership
- NFR-06 (Address-Role Exclusivity Is Global, Not Scoped to This Checkout): selecting an address as shipping or billing at checkout MUST update that role flag on the customer’s saved-address record itself — the backend MUST clear the same role flag from every other saved address for that customer, not just within this one checkout session — so a role change made here persists as the customer’s new default on their next checkout too, and the customer should be told as much rather than assuming the choice is scoped to this order alone.
Related Documents
- BRD-014 — Checkout Review: Address, Delivery, and Payment Selection
- SR-012 — Reusable Checkout Orchestration: System Requirements — the server-side mechanics (FR-04, FR-05, FR-09, FR-13) this screen’s behavior builds on
- SR-013 — Shopping Cart Management Spec — cart editing that feeds this screen’s cart-based Order Items card
- SR-014 — Checkout Completion: Payment Capture & Fulfillment Handoff System Requirements — what happens after this screen’s Place Order & Pay is tapped
- Technical Debt — Reusable Checkout Orchestration Gaps
- UI walkthroughs: Checkout, Buy Now Checkout
- Microservices: shop-service, order-service