Skip to content
GUIDES#Claude Code#Sumit#sell courses

How to Build a Digital Store with Abandoned Cart Recovery Using Claude Code, No Shopify, No Commission Fees

70% of online carts are abandoned, and most stores only find out after the buyer is already gone. Here is how we built a complete digital store that captures every buyer from the first click and brings them back automatically: the architecture, the decisions, and the lessons.

Yaakov Tzedek
Yaakov Tzedek · AI expert·11 min read
Building a digital store with abandoned cart recovery using Claude Code
THE BOTTOM LINE
  • The stack: Next.js + Supabase Storage (no SQL!) + Sumit for payments and invoicing + Resend for emails.
  • The golden rule: The server sets prices. Always. The browser only displays them.
  • The winning card: Contact details are collected on the first add-to-cart, so every abandoner becomes a lead with automatic recovery by email and WhatsApp.
~70%Average cart abandonment rate
0 ILSPlatform commission fees
0SQL tables required
Up to 2 + WhatsAppCart recovery emails
DID YOU KNOW?

The abandoned cart system in this store does not wait for the buyer to reach the checkout page: it collects name, phone, and email at the moment of the first add-to-cart, so it captures even someone who left after 10 seconds. Most commercial plugins only capture buyers who actually started checkout.

An independent digital store on your own site, with a catalog, cart, Israeli payment processing with invoicing, and digital delivery, built today with Claude Code in hours instead of weeks, with no platform fees and full ownership. In this guide, we break down the architecture of exactly such a store running in production (the one you're browsing right now), including the part most stores get wrong: an abandoned cart system that captures the buyer from the very first click, not just on the checkout page.

In short (TL;DR)

  • The stack: Next.js + Supabase Storage (no SQL!) + Sumit for payments and invoicing + Resend for emails.
  • The golden rule: The server sets prices. Always. The browser only displays them.
  • The winning card: Contact details are collected on the first add-to-cart, so every abandoner becomes a lead with automatic recovery by email and WhatsApp.
  • If you don't want to build from scratch: The complete kit with all the code, the exact same system, packaged.

Why an independent store and not Shopify?

Three numbers tell the story: Shopify charges a monthly subscription fee plus a commission on every transaction. Gumroad takes 10%. An independent store pays only the payment processing fee, and everything else is yours: the code, the data, the customer list, and complete freedom to customize every pixel.

What changed in 2026 is the cost of building. A system that used to be a weeks-long project is now a conversation with Claude Code, provided you have the right architecture in hand. That's exactly what we break down here.

The architecture: a complete store with zero SQL tables

The most surprising decision in this system: there is no database. Every record, product, order, cart, coupon, and entitlement is a JSON file in a private Supabase Storage bucket:

store/
├── products/<id>.json      ← catalog
├── coupons/<id>.json       ← coupons
├── promotions/<id>.json    ← automatic promotions
├── orders/<id>.json        ← orders
├── carts/<id>.json         ← abandoned carts
└── entitlements/<user>.json ← what each customer is entitled to

Why is this brilliant for a digital store? Zero migrations, zero ORM, backup equals copying a folder, and every record is human-readable. Up to thousands of orders, it simply works, and in the most literal sense you cannot break a schema.

The principle you must never compromise: the server sets prices

The classic mistake in homegrown stores: the browser sends the server "the user purchased for 149 ILS." Open DevTools, change it to 1 ILS, and the store charges one shekel.

In our system, browser prices have one job: display. All real pricing flows through a single server endpoint that recalculates everything, catalog prices, coupons, promotions, both on the cart page and again at the moment of the actual charge. What the browser thinks simply does not matter.

Abandoned cart: why capture at the first click and not at checkout?

About 70% of online carts are abandoned. Now the critical question: when do you find out who abandoned?

Most systems (including commercial plugins) capture the buyer only once they've entered their details on the checkout page. The problem: most abandoners never get there at all. They added to cart, took a look, and left. As far as you're concerned, they're ghosts.

The solution we built: on the first add-to-cart, a short modal opens asking for name, phone, and email, with an honest promise ("We'll save your cart and help if anything gets stuck"). The details are saved to the device and never asked for again, and the lead is captured on the server at that very moment. From that point on:

  1. After about an hour: First email: "Your cart is waiting" with a link that restores the entire cart in one click.
  2. After about a day: A second and final email (nobody likes spam).
  3. For the store owner: A dashboard showing all pending carts, how much money is on the table, and a personal WhatsApp button for each buyer: "Hey, I saw you started a purchase, can I help?"
  4. If the buyer completes the purchase: The record flips to "converted" and the emails stop immediately.

This formula turned abandoned carts from lost sales into warm leads with an automatic recovery path.

Payment processing: Sumit, the right solution for an Israeli business

For an Israeli business, payment processing is not just about charging a card. It also means a tax invoice/receipt, VAT, and reporting. That is why we chose Sumit:

  • Client-side tokenization: The card number is sent directly to Sumit and never touches your server (less security liability, no PCI).
  • Server-side charge using the amount the server calculated (see the principle above).
  • Automatic tax invoice/receipt sent to the customer on every purchase. Zero manual work.

Selling internationally? The payment point in the code is marked as an adapter block. Swap in Stripe without touching the rest of the system.

A digital product (a course, a kit, a file) requires two things: the buyer gets it immediately, and anyone who did not buy, does not. The solution: files sit in a private bucket, and after purchase the customer receives a signed download link with an expiry. The entitlement is saved to their account permanently. They log in via a magic link (no password) and download again whenever they like.

How do you actually build this?

The long way: Take the architecture from this guide and build with Claude Code piece by piece. The correct build order: storage layer, catalog, customer cart, server pricing, two-step checkout, payment processing, delivery, abandoned cart, recovery flow, dashboard.

The fast way: The complete digital store kit, all the code for this system, cleaned and packaged, with a Skill that guides Claude Code to build it on your site in a single conversation. It asks what you sell, builds in the right order, and finishes with a real end-to-end test purchase.

And if anything gets stuck, a private 1-on-1 lesson and we set it up together.

The bottom line

A digital store is no longer a choice between "pay platform fees" and "a months-long development project." With the right architecture, simple JSON storage, authoritative server-side pricing, Israeli payment processing with invoicing, and an abandoned cart system that captures from the very first click, Claude Code builds you a real asset with full ownership. The complete kit is here ←

Frequently asked questions

Was this article helpful?
Share:WhatsAppLinkedInX
Yaakov Tzedek
WRITTEN BY

Yaakov Tzedek

An Israeli AI lecturer, consultant and implementer who has supported 100+ organizations in AI implementation and lectured for 200+. Official content partner of Meta, Google, Canva and TikTok, featured on Israel's Channel 13.

More about Yaakov →