No surprises

The setup, in full.

You'll need

1. Buy and download

Checkout takes under a minute. Your payment is verified with Stripe and the download unlocks immediately — start here.

2. Unzip and install

unzip pagemage-starter.zip && cd pagemage-starter
npm install

3. Create your product in Stripe

In the Stripe dashboard, open Product catalog and create a product with a one-time price — or a recurring price if you'd rather sell a subscription (the checkout detects it automatically). Copy the Price ID; it looks like price_.... Payments go straight to your account.

4. Add your keys

For deployment, add these in Vercel → your project → Settings → Environment Variables. For local testing, put the same values in a .env.local file.

Variable Required What it does
STRIPE_RESTRICTED_KEY Yes (or secret key) Restricted live key with Prices read + Checkout Sessions write
STRIPE_PRICE_ID Yes The price you're selling
SITE_URL Yes Your domain — used for checkout redirects
STRIPE_PRICE_ID_PRO Optional Adds a second tier to the pricing section automatically

5. Test locally (optional)

npx vercel dev

Visit localhost:3000, press the checkout button, and pay with Stripe's test card 4242 4242 4242 4242 — any future expiry, any CVC. You'll land on the download page with the verified-delivery flow running for real.

6. Deploy

npx vercel --prod

That's the whole deployment. Security headers are already configured in vercel.json, and the product archive ships inside the delivery function, so it's never publicly downloadable.

7. Go-live checklist

Troubleshooting

Stuck?

Email hello@pagemage.tech — setup questions usually get a same-day answer.

Get Pagemage