e6kart

Self-hosted multi-item Stripe Embedded Checkout blueprint for static websites, mixing monthly subscriptions and one-time add-ons on your own domain.

e6kart Screenshot Preview

Self-hosted multi-item Stripe Embedded Checkout blueprint for static websites, mixing monthly subscriptions and one-time add-ons on your own domain.

  1. Official Website: e6web.com
  2. Live Demo: e6web.com/checkout
  3. Category: Payments & E-commerce
  4. Type: Embedded Stripe Cart Blueprint
  5. Pricing / License: Free

Overview

e6kart is a lightweight, self-hosted checkout pattern created for static and Jamstack websites. Instead of redirecting buyers away to a third-party storefront or paying monthly SaaS cart fees, visitors land on /checkout/?plan=pro-site&billing=monthly, switch primary plans, toggle between Monthly and One-Time billing, and check optional add-on services inside a single embedded Stripe Checkout iframe.

A minimal Node.js/Express backend holds the authoritative product catalog and prices, calls Stripe's POST /v1/checkout/sessions with ui_mode=embedded and dynamic price_data, and enforces strict CORS and IP rate limiting.


Key Highlights & Features

  1. Mix Monthly & One-Time Items: Combines recurring subscriptions and one-time add-ons in a single Stripe Embedded Checkout session (mode=subscription).
  2. Authoritative Server-Side Catalog: All product prices and descriptions live in your backend CATALOG, preventing browser price tampering.
  3. No Manual Stripe Product Setup: Dynamically generates price_data per session—add or update plans in code without clicking through Stripe Dashboard.
  4. Built-In CORS & Rate Limiting: Locks checkout creation to your exact production origins with per-IP rate limiting.
  5. Free Apple Pay & Wallet Support: Verify your domain in Stripe's Payment method domains without paying for Stripe-hosted custom domains.

Live Demo & How It Works

See it running live at e6web.com/checkout.

Point any static pricing page CTA to your checkout route with query parameters:

<a href="/checkout/?plan=pro-site&billing=monthly">Choose Monthly ($125/mo)</a>
<a href="/checkout/?plan=pro-site&billing=onetime">Pay One-Time ($1,375)</a>

2. Mount Stripe Embedded Checkout

Your /checkout/ page sends the selected items ([{ plan, billing }, ...]) to your API endpoint, receives a clientSecret, and mounts Stripe's iframe directly on your domain:

const res = await fetch('https://pay-api.example.com/create-checkout-session', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ items })
});
const { clientSecret } = await res.json();
const checkout = await stripe.initEmbeddedCheckout({ clientSecret });
checkout.mount('#checkout');

Security Checklist

  • Keep STRIPE_SECRET_KEY (sk_live_...) on the server only—never expose it in client-side JavaScript or Git.
  • Always resolve prices from your server-side CATALOG.
  • Lock ALLOWED_ORIGINS to your production domains and block /checkout/ in robots.txt.

Pricing & Alternatives

  • Pricing: Free DIY architecture (only standard Stripe processing fees apply).
  • Alternatives on StaticStack: Compare with Stripe Payment Links for zero-code single-item links, or Snipcart for a hosted multi-item HTML cart widget.

AI Prompt

Copy and paste this prompt into your AI coding assistant (Cursor, Claude, ChatGPT, or Antigravity) to generate e6kart for your static HTML website:

Create a self-hosted multi-item Stripe Embedded Checkout ("e6kart") for my static HTML website using two parts:

1. Lightweight Node.js + Express backend (`server.js`):
   - Keep an authoritative server-side `CATALOG` object (plan IDs, names, descriptions, images, and `monthly` / `onetime` prices in USD cents) so prices cannot be tampered with in the browser.
   - Add `POST /api/embedded-checkout` accepting `{ items: [{ plan, billing }] }` (1 to 10 items).
   - Call Stripe's `POST https://api.stripe.com/v1/checkout/sessions` with `ui_mode=embedded`, `return_url` pointing to `/thank-you.html?session_id={CHECKOUT_SESSION_ID}`, and `mode=subscription` whenever any selected item is `monthly` (or `mode=payment` for one-time only).
   - Lock CORS with an `ALLOWED_ORIGINS` allowlist and add a simple per-IP rate limiter.
   - Read `STRIPE_SECRET_KEY` and `PUBLIC_SITE_URL` from environment variables.

2. Static HTML frontend (`/checkout/index.html`):
   - Add `<meta name="robots" content="noindex, nofollow, noarchive">`.
   - Read `?plan=...&billing=monthly|onetime` from the URL, let the user switch their primary plan, toggle Monthly vs. One-Time billing, and check optional add-on services.
   - Display a live order summary, POST selected items to `/api/embedded-checkout`, and mount Stripe Embedded Checkout (`stripe.initEmbeddedCheckout({ clientSecret }).mount('#checkout')`) using my `pk_live_...` publishable key.

Stripe Setup Help

  1. Get Your Stripe Keys:
    • In the Stripe Dashboard, go to Developers → API keys and copy your Publishable key (pk_live_... for production or pk_test_... for testing) and Secret key (sk_live_... or sk_test_...).
  2. Configure Server Environment Variables:
    • Never put sk_live_... in HTML or commit it to Git. Set these environment variables on your Node.js API host:
      STRIPE_SECRET_KEY=sk_live_YOUR_SECRET_KEY
      PUBLIC_SITE_URL=https://www.yourdomain.com
      
    • Lock ALLOWED_ORIGINS in server.js to your exact frontend domain (https://yourdomain.com, https://www.yourdomain.com).
  3. Test Your API Endpoint:
    curl -X POST "https://pay-api.yourdomain.com/api/embedded-checkout" \
      -H "Content-Type: application/json" \
      -d '{"items":[{"plan":"pro-site","billing":"onetime"},{"plan":"seo-addon","billing":"monthly"}]}'
    
    • A working setup returns {"clientSecret":"cs_live_..."}.
  4. Enable Apple Pay & Wallets (Free):
    • In Stripe Dashboard, go to Settings → Payments → Payment method domains, add www.yourdomain.com, and verify it. (Do not use the paid $10/month Custom Domains add-on—that is only for Stripe-hosted pages.)
  5. Block Checkout Pages from Search Engines:
    • Add Disallow: /checkout/ and Disallow: /thank-you/ to your robots.txt and exclude them from sitemap.xml.

Pricing, Privacy & Static Site Fit

  • Pricing / License: Free
  • Static Site Integration: Built to work with static HTML, CSS, and Jamstack workflows without maintaining a custom backend server.
  • Link Status: Verified Online (checked 2026-11-22).

Pros & Cons

ProsCons
100% free to use with no paid-tier lock-inFewer enterprise SLAs or dedicated support guarantees
Works cleanly with static HTML & Jamstack sites with zero backend bloatExternal services or scripts still depend on third-party uptime
Curated under Payments & E-commerce for easy discoveryMay require comparing sibling tools to match exact project limits

Quick Comparison

ToolPricing / LicenseSummary
e6kartFreeSelf-hosted multi-item Stripe Embedded Checkout blueprint mixing monthly and one-time plans
FluentCartFreemiumWordPress e-commerce plugin with REST API and Buy Links for static frontends
GumroadFreemiumSell digital products, courses, and memberships with overlay checkouts

FAQ

Is e6kart free to use?
Yes. e6kart is free to use for static websites.

Does e6kart work with static HTML websites?
Yes. e6kart is curated specifically for static HTML and Jamstack builds without server maintenance.

What category does e6kart belong to?
It is listed under Payments & E-commerce.

What are good alternatives to e6kart?
Popular alternatives in Payments & E-commerce include FluentCart and Gumroad.


Verdict

e6kart is a solid fit for static site builders looking for self-hosted multi-item stripe embedded checkout blueprint mixing monthly and one-time plans under a Free model. Compare it against other Payments & E-commerce options before locking in your stack.

Discussion

Ask questions, share integration tips, or leave feedback.

Loading discussion…

Back to Payments & E-commerce Browse Full Archive Visit Official Site