Original working file
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.
PRACTICAL ROUTE
Create a test Payment Link, connect it to the supplied page and verify the payment in your provider account without building a payment backend.
Your role: Choose the test product/price, keep the work in sandbox and verify the actual payment record.
1. Use the supplied project and ask your coding assistant to carry out the implementation. You do not need to write HTML, JavaScript or SQL yourself.
2. Follow the current lesson steps, configure only your own permitted accounts and check the result in the actual page/provider.
3. Keep expected results and observed results separate. Record the exact blocked step if you cannot run a live check.
BASIC ROUTE: use only the supplied public page and a sandbox Payment Link. Ask your assistant to configure its public link and publish only that page when ready. The detailed server/database/webhook setup below is an OPTIONAL ADVANCED extension, not a prerequisite for completing this Payment Link lesson.
--- REQUIRED SETUP (CODE READING IS OPTIONAL) ---
This is a separate practice project. public/ is the website folder; netlify/functions/ contains server-only functions. Install Node and Netlify CLI for local function testing, or deploy this project to your own Netlify account. Put real credentials in server environment variables, never in public/ or Git. No provider request runs just by opening these files. Account steps and real delivery must be checked in your own account.
1. Use a Stripe sandbox/test environment. Create a one-time sample product/price and its TEST Payment Link; put its public https://buy.stripe.com/test_... URL in public/config.js. Note the matching plink_ ID.
2. Run schema.sql in a NEW disposable Supabase project. Set SUPABASE_URL and SUPABASE_SECRET_KEY only on the server.
3. Install dependencies with npm install in this practice project; commit its generated package-lock.json with the project.
4. Configure a Stripe webhook destination for checkout.session.completed and checkout.session.async_payment_succeeded at https://YOUR-HOST/.netlify/functions/mini-payment-webhook. Set its endpoint signing secret, STRIPE_SECRET_KEY (sk_test_ only) and STRIPE_PAYMENT_LINK_ID on the server. A CLI forwarding signing secret is different from the hosted endpoint secret.
5. Use the official test-card instructions linked in the lesson. This code rejects live credentials/events, records a receipt only, and delivers no product. It is not a complete shop, tax/refund or fulfillment system.
For exact local commands and private environment names, read run-locally.txt and server-env.example.txt.