Flutter UI Walkthrough — Payment & Transactions
What the shopper sees
A routed screen titled “Payment & Transactions” listing saved cards as generic “Saved Card” tiles (no card number, brand, or expiry shown) with an added-on date and a delete icon, followed by a “Recent Transactions” section that always renders as empty.
What the shopper does here
- Taps the delete icon on a card tile to remove that saved card.
- Nothing else is actionable on this screen today — there is no way to add a card here.
How it’s built
PaymentCardModel carries only cardId and createdAt — the card body (number, holder name, expiry, brand) is never hydrated to the mobile client, because it lives exclusively in pci-service and no hydration path exists from this feature. AddCardSheet and PaymentController.addCard were removed outright, not merely hidden — this screen is strictly a display/delete surface over existing card references, not a card-management flow.
Deleting a card is optimistic: _CardTile’s delete icon removes the tile from the in-memory list immediately and reverts it with a visible error if the server call fails.
“Recent Transactions” renders _TransactionRows from summary.transactions, which PaymentController.loadPayment() sets straight from user-preference-service’s response — a field that is never populated by any backend today, so this section is permanently empty. See TD-00020, TD-04.
