Memory Tag Store — E-commerce (solomemorytag.com)
Memory Tag Store — E-commerce (solomemorytag.com) screenshot 1
Memory Tag Store — E-commerce (solomemorytag.com) screenshot 2
Memory Tag Store — E-commerce (solomemorytag.com) screenshot 3
Memory Tag Store — E-commerce (solomemorytag.com) screenshot 4

Memory Tag Store — E-commerce (solomemorytag.com)

ReactTypeScriptCloudflare WorkersCloudflare D1RazorpayShiprocketResendCron Triggers
Live Preview

Project Overview

The online store for SoLo Memory Tag. Buyers pick one of four tag designs, enter delivery details and pay with guest checkout, no account needed. Payments run through Razorpay and shipping through Shiprocket, and buyers track their order with an emailed one-time code.

Technical Implementation

A complete e-commerce flow built into the Memory Tag Worker. Prices are computed on the server in paise, never trusted from the browser. Checkout creates a Razorpay order, and only Razorpay's payment.captured webhook, verified with HMAC-SHA256 over WebCrypto, can mark an order paid; webhook replays are idempotent. Each order moves through a 9-state lifecycle (created, paid, packed, shipped, delivered, plus failed, returned-to-origin, cancelled and refunded) recorded in an append-only order_events ledger. A physical tag from stock is assigned in a single SQL statement, so two payments landing at the same moment can never receive the same tag. A scheduled cron job reconciles payments whose webhook never arrived, so no order is left stuck with money taken. Shipping goes through Shiprocket, which picks the cheapest of 40+ couriers per parcel and reports delivery status back through a webhook. When a parcel ships, the buyer is emailed the tag's login; those emails and the order-tracking OTPs are sent through Resend. Custom artwork orders go to WhatsApp, and refund, shipping and privacy policy pages meet the payment gateway's requirements.

Key Deliverables

  • Razorpay checkout: HMAC-verified webhook is the only source of truth for payment
  • Shiprocket shipping integration with courier status webhooks
  • 9-state order lifecycle with an append-only event ledger
  • Race-safe stock assignment in one SQL statement
  • Scheduled reconciliation for payments whose webhook never arrived
  • Order tracking by emailed OTP (Resend)

Project Snapshot

PaymentsRazorpay
ShippingShiprocket
EmailResend
Storesolomemorytag.com/order
Stack Highlights
ReactTypeScriptCloudflare WorkersCloudflare D1