Flutter UI Walkthrough — Order Confirmation
Where this flow starts
Reached only once Razorpay Payment Flow’s wait resolves successfully — the app navigates here with Get.offNamed, replacing the Payment Processing screen rather than stacking on top of it, so there’s no back-navigation into the payment flow from here.
What the shopper sees
A green checkmark with “Order Confirmed! Thank you for your purchase.”, the order number next to a copy icon, an Items Ordered (N) card, an Order Summary (Total Bill → Total Savings, if any → Subtotal → Tax → Shipping → Round Off, if non-zero → Total), a Track Order Status button, a Download Invoice link, and a Continue Shopping text link.
What the shopper does here
- Taps Track Order Status to leave this screen for a separate, live order-tracking screen.
- Taps Download Invoice.
- Taps Continue Shopping to return to wherever they were before checkout.
How it’s built
What’s shown here is a client-side snapshot, not a fresh backend read. OrderConfirmationController._loadOrder() calls orderRepository.getOrder(orderId) — the same still-mocked, in-memory ICheckoutRepository cache Checkout’s own doc already flags, not a live query to order-service. The entry it reads was seeded moments earlier, when CheckoutController.placeOrder() cached the client-built order model right after the real order was created. The binding reuses the exact same repository singleton Checkout’s binding registered (permanent: true), rather than opening a second one — so this screen and Checkout are reading from one shared, process-local cache.
Download Invoice is a stub today, not a real download. Tapping it only shows a snackbar (“Downloading invoice…”) — there’s no repository call and no file request behind it yet.
Track Order Status leads to a genuinely separate, real feature, not a dead end: it opens the Track Shipment screen, which fetches order detail once and holds its own Server-Sent-Events subscription (wrapping shipment-service’s GET /shipment/api/v1/order/:id/stream) for live courier-scan updates — a true real-time progress stream, distinct from this screen’s cached snapshot.

Related Documents
- BRD-013 — Checkout Completion: Real Payment Capture and Reliable Fulfillment Handoff
- SR-014 — Checkout Completion: Payment Capture & Fulfillment Handoff System Requirements — real-time progress stream (FR-09) the Track Order Status screen builds on
- order-service
- shipment-service
- See also: Track Shipment, My Orders
- Previous: Payment Method & Razorpay Payment Flow