# Smart Drink Kiosk Subscription SaaS & Atomic Dispense Engine
> Canonical: https://space-bit.com/solutions/smart-vending-saas/ | Alternate: https://spacebit.cn/solutions/smart-vending-saas/

Built for unmanned coffee kiosks, ice-cream terminals, and smart vending operators: frictionless zero-install H5 scanning backed by 30-second hashed QR tokens and fail-closed dispense locking.

## TL;DR Anti-Fraud & Retail Architecture (Citable Facts)
- Zero-Install Conversion: RN Web H5 lets walk-up customers subscribe via Stripe and redeem in seconds without downloading a native iOS/Android app.
- Zero Double-Vends & Screenshot Fraud: 30-second one-time hashed QR tokens contain zero PII and invalidate on first scan; a RESERVED -> COMMITTED / RELEASED engine fails closed offline.
- Ultra-Low Cloud Footprint: Single-node Go + SQLite core with DST-aware London midnight quota resets, UK GDPR flows, and a Vue 3 operator reconciliation cockpit.

## Key Metrics
- **30 sec**: One-time hashed QR validity
- **0 Double**: Fail-closed atomic dispense
- **Zero-App**: Instant scan H5 conversion
- **Stripe**: Recurring billing + UK GDPR

## Atomic Dispense Security vs. Naive Kiosk Flows
|Risk Vector|Spacebit Atomic Kiosk Core|Naive Implementation|Commercial Protection|
|---|---|---|---|
|QR Replay / Fraud|30s single-use server hash, zero PII|Static member QR codes shared via screenshots|Eliminates screenshot abuse|
|Double Dispense|RESERVED→COMMITTED/RELEASED + Idempotency-Key|Double-tap on flaky LTE pours two free drinks|Guaranteed zero double-vends|
|Offline Behavior|Fail-closed lock prevents unbilled pours|Offline grace pours create uncollected losses|Protects unmanned inventory|
|Walk-Up Friction|Zero-install RN Web H5 + Stripe checkout|Forced native app download kills impulse sales|Maximizes first-cup conversion|
|UK/EU Localization|UK GDPR consent + DST-aware timezone resets|Hardcoded UTC resets break London midnight quotas|Zero billing/quota tickets|

## Production Architecture Breakdown
### 01 · 30s Hashed QR & Zero-Install H5
Customers scan the kiosk display to launch an H5 flow backed by per-purchase Stripe PaymentIntent / Checkout Sessions with kiosk_id metadata and 30-second single-use server hashes invalidated on first scan.

### 02 · Fail-Closed Atomic Dispense Core
Webhook handlers enforce strict Stripe event.id deduplication; every pour enters a RESERVED lock guarded by Idempotency-Keys and only marks COMMITTED after MDB/serial hardware actuation handshake—failing closed offline.

### 03 · Lean Go + SQLite & Vue 3 Reconciliation
Minimal single-node Go + SQLite infrastructure keeps hosting costs negligible while powering Stripe webhooks, outlet stock alerts, and daily reconciliation.

## Adjacent Smart Retail Verticals
Robotic coffee, matcha & ice-cream kiosks, Smart unmanned fridges & micro-markets, Campus/office subscription drink & print stations, Shared self-service retail & entertainment terminals

## Technical & Commercial FAQ
### Why use a zero-install H5 flow instead of forcing customers to install a native app?
Walk-up beverage buyers churn immediately if asked to download a 60MB app before trying a drink. A zero-install H5 with Stripe subscription checkout converts first-time passersby in under 30 seconds.

### How does the system prevent double-vends during poor cellular signal?
Requests carry unique Idempotency-Keys and lock the slot in a RESERVED state before hardware actuation; QR hashes invalidate on first verification, and offline states fail closed.

### Can this platform support multi-site operators and franchise revenue splits?
Yes. The Vue 3 admin cockpit manages per-outlet pricing, machine telemetry, ingredient/cup counters, and automated reconciliation exports.

## Contact & Live Demo
- Email: zhangze1029@gmail.com | Phone: +86 131-2096-3160 | WeChat: zzx_ing