Mmu Milk Billcoin Fix Jun 2026
+-------------------+ +--------------------+ +-------------------+ | Student Mobile | <---> | MMU Milk POS App | <---> | BillCoin Wallet | | (React Native) | QR | (React Native) | API | (Partner App) | +-------------------+ +--------------------+ +-------------------+ | | HTTPS (REST) v +----------------------+ | Payment Validation | | Service (Node.js) | +----------------------+ | +--------------------+--------------------+ | | +-------------------+ +-------------------+ | Blockchain Node | | Database (Postgres) | | (BillCoin) | | - Transactions | +-------------------+ | - Loyalty ledger | | - Audit logs | +-------------------+ | v +----------------------+ | Admin Dashboard | | (React + GraphQL) | +----------------------+
Legal challenges:
| # | User Story | Acceptance Criteria | |---|------------|---------------------| | | As a student , I want to pay for milk with BillCoin so I don’t need cash. | 1. Student can tap “Link BillCoin Wallet” on the MMU Milk app. 2. Wallet address is securely stored (encrypted at rest). 3. At checkout, app shows QR code with correct amount (e.g., RM 1.80). 4. Scanning the QR in BillCoin wallet signs and broadcasts transaction. 5. Transaction is confirmed within 3 seconds and the POS shows “Paid” . | | US‑002 | As a cafeteria staff , I need to see a live list of pending BillCoin payments so I can serve the next customer promptly. | 1. POS UI lists orders with status “Awaiting Payment” . 2. When payment is confirmed, status changes to “Paid – Ready” automatically. 3. No manual refresh required. | | US‑003 | As a finance officer , I must export a CSV of all BillCoin milk transactions for the month to reconcile with our ledger. | 1. Admin dashboard has Export → BillCoin Milk Sales button. 2. Export includes: Transaction ID, Timestamp (UTC), Student ID (hashed), Amount (RM), Wallet address (masked), Block hash, Settlement status. 3. Export respects GDPR – no PII beyond hashed Student ID. | | US‑004 | As a BillCoin partner , I need an API endpoint that returns payment validation results in a standard JSON format. | 1. Endpoint: POST /api/v1/payments/validate . 2. Request body: "txHash": "<string>", "expectedAmount": "<decimal>" . 3. Response: "valid": true, "confirmedAt": "2026-04-10T08:15:23Z", "error": null . 4. Returns HTTP 200 for successful validation, 400 for malformed request, 500 for internal error. | | US‑005 | As a student , I want to earn loyalty points for each milk purchase using BillCoin. | 1. After a successful payment, the system credits 1 loyalty point to the student’s loyalty ledger. 2. Points accumulate; at 5 points the student receives a free milk coupon (auto‑generated QR). | | US‑006 | As a system admin , I need rate‑limiting and anomaly detection to prevent abuse of the BillCoin checkout. | 1. Max 10 BillCoin payment attempts per user per minute. 2. Flag any user with > 3 failed validation attempts within 5 minutes. 3. Alerts sent to Ops Slack channel. | mmu milk billcoin
There are several types of milk, including:
💡 For account issues or login errors, users are often advised to contact the specific dairy union (like Mithila Milk Union) or the app developer directly, as account creation typically happens through the administrative office rather than the app itself. At checkout, app shows QR code with correct amount (e
A feature that automatically deducts funds based on the current "all-milk price" or fixed delivery rates, potentially integrating with broader market forecasts.
Global dairy markets suffer from price manipulation, delayed subsidies, and lack of traceability. Inspired by Bitcoin’s decentralization but critical of its energy use, introduces a proof-of-stake (PoS) system where each token represents 1 liter of pasteurized milk entered into a government-approved ledger. The “MMU” acts as both a Minting Module Unit (validating milk output via IoT sensors) and a Milk Market Utility (exchange for feed, veterinary services). Prometheus metrics ( payment_success_total
| Category | Requirement | |----------|-------------| | | Payment validation latency ≤ 3 seconds 95 % of the time under load of 200 concurrent POS terminals. | | Scalability | Architecture must support up to 5 k concurrent BillCoin payments (future expansion to other campus stores). | | Reliability | 99.9 % uptime for the Payment Validation Service (SLA). | | Security | - End‑to‑end encryption (TLS 1.3). - JWT access tokens with 15‑minute expiry. - Role‑based access control (RBAC) for admin functions. - Pen‑testing before production. | | Maintainability | Code written in Node.js 20 (backend) & React Native (POS app) with unit test coverage ≥ 80 %. | | Observability | Centralised logging (ELK stack), Prometheus metrics ( payment_success_total , validation_latency_seconds ), Grafana dashboards, alerting on error rate > 2 %. | | Compliance | GDPR‑compliant data handling; PCI‑DSS not needed (no card data). | | Usability | POS UI must be usable with one hand; QR code must be scannable from a distance of ≤ 30 cm. | | Internationalisation | UI strings available in English and Bahasa Malaysia. |