FlowDelivery v0.5.0
Payments Foundation (Sprint 11)
Every confirmed order now persists a payment record atomically with the order and its items, and the checkout renders the localized payment method and status.
Highlights
- Supabase
paymentstable with explicit grants and RLS scoped to the order owner viaauth.uid(). - Atomic
create_orderevolution: order + items + payment in a single transaction (SECURITY INVOKER). - Payment domain types wired into checkout contracts:
PaymentMethod,PaymentStatus,PaymentSummary. - Checkout data layer forwards the payment method to the RPC and maps the payment summary back to the domain.
CheckoutViewModelsendsPaymentMethod.cashOnDeliveryexplicitly; checkout UI renders localized payment method and status.- Localized payment copy in pt_BR, pt, and en; obsolete
cartCheckoutPlaceholderkey removed.
Validation
- Focused regression suite: 72 tests. Consolidated
flutter testmatrix: 206 tests. - Localization, Theme, and Trello guards green.
Live demo
https://leomoraesitu.github.io/flowdelivery-app/
Artifact checksums
SHA-1: aa096451cf8ea2ffd1957f8fd93267b67653fe91
SHA-256: 8819064d64177eef477df6aa2ffaf89fd1b3664fc114e3aa410ab37fa917c7e6
Full notes: docs/releases/v0.5.0.md · Changelog: CHANGELOG.md