Launch brief
Write down the product, audience, included files, and who approves the launch.
Setup guide
Pagemage gives you the source for a working storefront. You still need to adapt it to your product, configure your accounts, and test the purchase. Here is what that involves.
Check the starter's availability. After a completed payment, the confirmation page unlocks your ZIP. Save the archive and confirmation link.
Extract the download and open the folder containing package.json in your terminal.
npm ci
Edit the copy in index.html, the themes in styles.css, and your business details in the legal pages.
Use a separate Stripe sandbox for a new integration, or keep an existing test-mode setup for rehearsal. Create an active, fixed, per-unit USD price and copy its price_... ID. Standard, Pro, Agency, Agency Pack, and marketplace downloads require one-time prices. Care tiers require licensed monthly or yearly subscription prices with an interval count of one. Keys and prices must come from the same account and environment; each tier needs a separate price ID. Match the advertised amount and provide a cancellation path for recurring offers.
Put local values in .env.local. Set deployment values in your Vercel project's environment variables. Never commit secret keys. Customize the Stripe-hosted Checkout name, colors, and square icon in CHECKOUT_BRANDING in catalog.js; the override applies to this storefront's sessions and leaves shared account branding alone. Use a public PNG or JPG icon at least 128×128 and under 512 KB.
| Variable | Purpose |
|---|---|
| STRIPE_RESTRICTED_KEY | Read Prices and Checkout Sessions, and create Checkout Sessions. Use a test key locally. STRIPE_SECRET_KEY is also supported. |
| STRIPE_PRICE_ID | The one-time USD price for your standard product. |
| STRIPE_PRICE_ID_MAP | Optional JSON object mapping marketplace tier IDs to their Stripe Price IDs. Individual per-tier variables take precedence. Use Price IDs from the same account and mode as the key. |
| SITE_URL | The full site URL used for checkout redirects. Use your local URL during testing. |
| STRIPE_PRICE_ID_PRO | Optional price for a second tier. Update the tier description in catalog.js too. |
| STRIPE_WEBHOOK_SECRET | Signing secret for your payment event destination. Configure before launch; test and live destinations have different secrets. |
| LEADS_GITHUB_TOKEN / LEADS_GITHUB_REPO | Contents read/write token and your own private repository for order records and any enabled lead forms. |
| ADMIN_TOKEN | Long random token for owner-only order reconciliation and reporting. Keep it in secret settings. |
npm run check
npm run smoke
npx vercel devUse Stripe test credentials for every test purchase. The public page hides purchase buttons for test-mode prices. To exercise the checkout in your local environment, request a session from the API:
curl -X POST http://localhost:3000/api/create-checkout-session \
-H 'Content-Type: application/json' \
-d '{"tier":"standard"}'Open the returned Stripe URL and use test card 4242 4242 4242 4242, a future expiry, and any CVC. Confirm the download contains your product. Test an unpaid session too, and confirm the server refuses the download.
Complete a second test without opening the success page. Verify the signed event records the correct order in your private register. Replay it and confirm there is one order and one delivery notice. If you accept delayed payment methods, check that pending and failed payments stay locked and a later paid event unlocks only the purchased product. Use the app's own test Checkout Sessions; a synthetic event without its metadata does not prove delivery works.
After adapting the build for your product, deploy to your own Vercel project:
npx vercel --prodReview the deployment before sharing it. The security headers live in vercel.json. The public build must exclude api/assets/ so buyers can only download through the payment-checked function.
Tick off each item as you check it. These notes do not verify your site for you.
Print this page to keep a paper copy. With JavaScript enabled, your checks can stay in this browser.
npx vercel dev. The static preview server does not run payment functions.For setup help, email hello@pagemage.tech with the error and the step you were following. Keep keys and customer details out of the message.
Choose your project rights
Every starter license includes the complete storefront source, eight palettes, section templates, setup guide, and the six-document launch toolkit. Your receipt identifies the project rights you purchased.
| License | Projects covered | Client delivery |
|---|---|---|
| Standard | One project owned by you, personal or commercial | Choose Agency Pack or Agency for client projects |
| Pro | Unlimited projects owned by you | Choose Agency Pack or Agency for client projects |
| Agency Pack | Five named client projects | White-label and hand over each assigned project |
| Agency | Unlimited own and client projects | White-label client delivery |
A staging deployment and its matching production site count as one project. No tier permits resale of the source as a template or competing starter. The LICENSE.txt inside the download contains the usage terms.
Licenses do not include custom implementation, hosting subscriptions, or the separately sold marketplace products. Choose a scoped service for implementation or a Care plan for an agreed monthly improvement. Source and setup support do not constitute a managed service.
Included in every starter license
Editable Markdown files with instructions and a filled-in fictional example. Included with every starter license.
Write down the product, audience, included files, and who approves the launch.
Keep approved copy, images, sources, and usage permissions together.
Record the purchase tests, unresolved problems, and release decision.
Choose what to measure and when to review the results.
Pass on the source, accounts, editing instructions, and unfinished work.
Record each licensed project and its releases.
Delivered in the launch-kit folder of the starter ZIP. These documents are included with Standard, Pro, Agency Pack, and Agency. They are separate from the 200 individually sold digital products. Compare project rights.