Development #7101
Updated by Kyle Chong 3 months ago
Refer to: docs/planning/modules/M06_Payment_Tender.md Implement the common payment framework used by M03 Checkout. Scope: * Define common Payment Method / & Tender model. * Define (M06) (docs/planning/modules/M06_Payment_Tender.md). Complete offline payment request rules on the Payment screen: cash remains available; card, QR/eWallet and payment result structures. * Support statuses such as Pending, Approved, Declined, Cancelled, Failed and Timeout. * Route each online voucher buttons show unavailable when their provider requires connectivity. Do not allow a disabled tender type to the appropriate handler. * Keep provider/device-specific implementation outside the M03 Checkout logic. * Support future tender types without redesigning the Checkout flow. * Support multiple tender lines if split payment is required. Expected flow: Checkout → Payment Orchestrator → Tender Handler → Payment Result confirm payment. Done when: M03 when an offline sale can execute a payment through M06 without knowing the implementation details of the selected tender type. be completed safely by cash only.