Back to the lesson

Original working file

BASIC-START-HERE.txt

Code and working example pages keep their original identifiers and sample text. The lesson and file guidance explain them in your language.

BASIC HOSTED CHECKOUT

1. Ask your coding assistant to serve the public folder locally; the script is a module and needs a local web server, not a file:// double-click.
2. Create your own Stripe sandbox/test Payment Link in the Dashboard. No private key is needed in this page.
3. Ask the assistant to replace the placeholder in public/config.js with that public test URL. Publish only public when ready.
4. Check the item, amount and currency; use only official Stripe test details. Verify the actual payment in your provider account.
5. Cancel a new checkout and open success.html directly: neither proves a paid order. This page does not deliver a product automatically.

The full workshop adds an OPTIONAL server/database/webhook extension. You do not need that extension for this basic lesson. Never deploy a folder containing secrets.