Problem
The platform markets cryptocurrency payments (XLM, USDC, BITE loyalty tokens) as a core feature, but there is zero checkout or payment implementation. frontend/app/(public)/cart/page.tsx is actually a workspace check-in page unrelated to restaurant ordering. The cartStore and AddToCartModal components exist but lead nowhere - orders are dispatched via a WhatsApp link generator, not a payment system. No PaymentMethod, Transaction, or LoyaltyToken types exist anywhere in the frontend.
Proposed Solution
Build a /checkout page with:
- Order summary (items, quantities, subtotal, tax, total)
- Payment method selector:
card | xlm | usdc | whatsapp
- Stellar wallet connection using the Freighter browser extension API
- Transaction submission to Stellar testnet via
@stellar/stellar-sdk
- Confirmation screen displaying the on-chain
txHash linking to Stellar Expert Explorer
Add types: PaymentMethod, Transaction { id, amount, currency, txHash, status, createdAt }, LoyaltyToken { balance, symbol, earnRate }
Acceptance Criteria
Problem
The platform markets cryptocurrency payments (XLM, USDC, BITE loyalty tokens) as a core feature, but there is zero checkout or payment implementation.
frontend/app/(public)/cart/page.tsxis actually a workspace check-in page unrelated to restaurant ordering. ThecartStoreandAddToCartModalcomponents exist but lead nowhere - orders are dispatched via a WhatsApp link generator, not a payment system. NoPaymentMethod,Transaction, orLoyaltyTokentypes exist anywhere in the frontend.Proposed Solution
Build a
/checkoutpage with:card | xlm | usdc | whatsapp@stellar/stellar-sdktxHashlinking to Stellar Expert ExplorerAdd types:
PaymentMethod,Transaction { id, amount, currency, txHash, status, createdAt },LoyaltyToken { balance, symbol, earnRate }Acceptance Criteria
txHashas a link tohttps://stellar.expert/explorer/testnet/tx/{hash}