Back to the lesson

Original working file

reference/assignment-walkthrough.txt

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

ILLUSTRATIVE WORKED WALKTHROUGH

These steps explain a complete approach. They are not a claim that this live provider/account test was performed for you. Use your own project and record your actual observations.

1. Install dependencies in the separate practice project with npm install; this generates package-lock.json, which you preserve with that project. Use only a test Payment Link and sk_test_ credentials. The public link is not the webhook signing secret.

2. Find your matching paid test session, its signed webhook delivery and the private receipt with the same session_id, amount and currency. Redeliver that event: the primary key plus ignore-duplicates preference must leave one receipt. An unsigned request or direct success-page visit must create none.

3. For the failure rehearsal, temporarily change SUPABASE_URL only in the disposable local/server environment to an invalid test target. Redeliver the same legitimate event and observe a retryable failure. Restore the setting, redeliver and verify one durable receipt. Never change production settings or test with a real card.