{"id":21252819,"url":"https://github.com/kevinhellos/nextjs-buy-a-unicorn","last_synced_at":"2026-04-21T05:34:53.432Z","repository":{"id":259398957,"uuid":"853725339","full_name":"kevinhellos/nextjs-buy-a-unicorn","owner":"kevinhellos","description":"Template for a checkout/ purchase of digital product (e.g. course) with Next JS and Stripe","archived":false,"fork":false,"pushed_at":"2025-03-09T06:51:57.000Z","size":1457,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T05:41:58.506Z","etag":null,"topics":["nextjs","stripe"],"latest_commit_sha":null,"homepage":"https://nextjs-buy-a-unicorn.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kevinhellos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-09-07T11:07:41.000Z","updated_at":"2025-03-09T06:52:00.000Z","dependencies_parsed_at":"2024-10-25T04:30:55.461Z","dependency_job_id":"cf930d42-d866-4033-b919-7e6ca9257d8c","html_url":"https://github.com/kevinhellos/nextjs-buy-a-unicorn","commit_stats":null,"previous_names":["kevinhellos/nextjs-buy-a-unicorn"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kevinhellos/nextjs-buy-a-unicorn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinhellos%2Fnextjs-buy-a-unicorn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinhellos%2Fnextjs-buy-a-unicorn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinhellos%2Fnextjs-buy-a-unicorn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinhellos%2Fnextjs-buy-a-unicorn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevinhellos","download_url":"https://codeload.github.com/kevinhellos/nextjs-buy-a-unicorn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinhellos%2Fnextjs-buy-a-unicorn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32079098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T02:38:07.213Z","status":"ssl_error","status_checked_at":"2026-04-21T02:38:06.559Z","response_time":128,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nextjs","stripe"],"created_at":"2024-11-21T03:49:01.024Z","updated_at":"2026-04-21T05:34:53.415Z","avatar_url":"https://github.com/kevinhellos.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next JS Stripe\nTemplate for a checkout/ purchase of digital product (e.g. course) with Next JS and Stripe\n\n## Setup\n### Step 1 - Stripe API Key\n- Go to https://dashboard.stripe.com/ to obtain your Stripe Secret Key.\n- Paste Stripe Secret Key as a value to the environment variable ```STRIPE_SECRET_KEY``` in the  ```.env```\n\n### Step 2 - Configure productData.ts\n- Change the product name, price, currency, labels, etc...\n\n### Step 3 - Configure product.tsx\n- Your paid contents/ videos goes in this page\n- Note: this page is a server component, without a correct url, the product page will not get rendered and not discoverable as client side codes\n\n## Payment API Flowchart\n![Stripe-NEXTJS](https://github.com/user-attachments/assets/ec4865a2-244e-4486-899f-8fc74af513e0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinhellos%2Fnextjs-buy-a-unicorn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinhellos%2Fnextjs-buy-a-unicorn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinhellos%2Fnextjs-buy-a-unicorn/lists"}