Bluebook Labs

Case study

Sweepstakes Commerce Platform

A full commerce and operations system built for a sweepstakes influencer, with a $2M transaction target. A customer storefront and the Zellox operations portal work as one platform, from the first click to verified payment and delivery.

$2M

transaction target

2

connected production apps

40,000+

lines of TypeScript

200+

automated tests

40

API routes

25

database tables

3

payment rails, plus installments

9

transactional email templates

How it fits together

01

Storefront

Customers choose a package and pay by Zelle, card, Apple Pay, or USDT.

02

Ingestion

Bank emails, CSV imports, and signed card webhooks all feed one record.

03

Verification

Zellox checks each payment against the customer's claim and amount.

04

Confirmation

Verified payments confirm the purchase automatically. Exceptions go to review.

05

Delivery

Course access, receipts, and operator alerts go out without manual steps.

Payments

Every way a customer can pay, handled by one purchase flow and one set of records.

  • ·Zelle claims, with step-by-step payment instructions at checkout
  • ·Hosted card and Apple Pay checkout through Shopify
  • ·USDT payments with proof upload and admin review
  • ·Three-part weekly installment plans with automated reminders
  • ·Card payment links that admins can send to individual customers
  • ·Prices resolved on the server, so a posted amount is never trusted
  • ·Timed card checkouts, with automatic refunds for late payments
Storefront checkout with four priced packages
Zellox payment plans table with progress and status

Shown with demo data.

Verification

Each payment is checked before anything is confirmed. Automation clears the routine cases, and people resolve the rest.

  • ·Customer email checks for format, disposable domains, and mail records
  • ·Confirmation code validation and normalization across bank formats
  • ·Duplicate claim and double submission blocking
  • ·Automatic matching on confirmation number and amount
  • ·Ranked match suggestions by amount, code similarity, email, and name
  • ·Grouped payments, top-ups, and underpayment handling
  • ·Claim adjustments and unmatching for corrections
Zellox manual match screen with ranked payment suggestions

Shown with demo data.

Security

Access and money-related logic live on the server, and checkout defaults to closed when something is misconfigured.

  • ·Role checks enforced on the server for portal pages, not just hidden links
  • ·Login lockout after repeated failures, with email alerts
  • ·HMAC-signed card webhooks verified with constant-time comparison
  • ·Authenticated webhooks between the storefront and the portal
  • ·Signed, expiring sessions for privileged screens
  • ·Portal data closed to the browser, with access routed through the server
  • ·Fail-closed defaults on card checkout

Email and notifications

Customers hear from the system at each step, and operators hear about what needs them.

  • ·Nine transactional templates, from receipts to plan reminders and course access
  • ·Bulk send tooling that dry-runs by default and removes duplicate recipients
  • ·Delivery stamps that let an interrupted send resume safely
  • ·Scheduled reminders ahead of each installment
  • ·Real-time Pushover and native web push alerts for operators
  • ·A daily repair job that finds and fixes missed course grants

Zellox portal

The private back office where the business runs day to day. It installs as a web app and spans 28 pages.

  • ·Four access levels, with visibility set page by page
  • ·Live overview of payments, matches, and pending claims by account
  • ·Automatic Zelle email ingestion through a Cloudflare Worker
  • ·Bank CSV import with duplicate detection and upload history
  • ·Payment plan tracking, conversion, and completion
  • ·Referral partners, commission calculation, and payout records
  • ·Complimentary entries, course links, and confirmed entry export
Zellox dashboard with payment totals and a per-account breakdown

Shown with demo data.

Granular settings

Operators change how the business runs from the portal. Changes go live without a code deploy.

  • ·Open or close the site, and schedule its closing
  • ·Package ladder: quantity, price, and allowed payment methods
  • ·Per-package promos with start, end, and automatic renewal
  • ·Payment rails switched on and off independently
  • ·Daily limits, receiving accounts, and payment routing rules
  • ·Installment amount, frequency, and reminder timing
  • ·Minimum role required for each portal page
Zellox settings with site status and an editable package ladder
Zellox promo settings with price, schedule, and auto-renewal
Zellox master settings setting the minimum role for each page

Shown with demo data.

Stack

  • Next.js
  • React
  • TypeScript
  • Tailwind CSS
  • Supabase
  • PostgreSQL
  • Vercel
  • Cloudflare Workers
  • Shopify
  • Resend
  • Kajabi
  • PostHog
  • Pushover
  • Web Push