{"id":15764789,"url":"https://github.com/thorwebdev/checkout-netlify-serverless","last_synced_at":"2026-03-18T16:59:19.557Z","repository":{"id":77094355,"uuid":"255478339","full_name":"thorwebdev/checkout-netlify-serverless","owner":"thorwebdev","description":null,"archived":false,"fork":false,"pushed_at":"2020-04-14T01:14:13.000Z","size":768,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T02:52:00.375Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/thorwebdev.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}},"created_at":"2020-04-14T01:13:45.000Z","updated_at":"2023-02-11T12:19:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"e09a77c3-85cf-4660-87f8-91359514bb13","html_url":"https://github.com/thorwebdev/checkout-netlify-serverless","commit_stats":{"total_commits":2,"total_committers":2,"mean_commits":1.0,"dds":0.5,"last_synced_commit":"220a5da62d3c7abb206618f9c56c10b842b9a9fe"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thorwebdev%2Fcheckout-netlify-serverless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thorwebdev%2Fcheckout-netlify-serverless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thorwebdev%2Fcheckout-netlify-serverless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thorwebdev%2Fcheckout-netlify-serverless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thorwebdev","download_url":"https://codeload.github.com/thorwebdev/checkout-netlify-serverless/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246451565,"owners_count":20779654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-04T12:21:08.192Z","updated_at":"2026-01-08T13:48:35.087Z","avatar_url":"https://github.com/thorwebdev.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless Stripe Checkout with Netlify Functions\n\nUse Stripe Checkout with Netlify Functions to sell your products online.\n\n## Demo\n\n- https://checkout-netlify-serverless.netlify.com\n- [Written tutorial](https://www.netlify.com/blog/2020/04/13/learn-how-to-accept-money-on-jamstack-sites-in-38-minutes/)\n- [Video lessons on egghead](https://jason.af/egghead/stripe-products)\n- Live coding session on [learnwithjason.dev](https://www.learnwithjason.dev/sell-products-on-the-jamstack)\n\n\u003cimg src=\"stripe-checkout-netlify-functions-demo.gif\" alt=\"Stripe Checkout with Netlify functions demo gif\" align=\"center\"\u003e\n\n## Features:\n\n- Load products from a JSON product catalogue\n- Create Checkout Sessions with Netlify Functions\n- Process Stripe webhook events with Netlify Functions to handle fulfillment\n\n## How to run locally\n\n### Prerequisites\n\n- [Node](https://nodejs.org/en/) \u003e= 10\n- [Netlify CLI](https://docs.netlify.com/cli/get-started/#installation)\n- [Stripe CLI](https://stripe.com/docs/stripe-cli)\n\nFollow the steps below to run locally.\n\n**1. Clone and configure the sample**\n\nThe Stripe CLI is the fastest way to clone and configure a sample to run locally.\n\n**Using the Stripe CLI**\n\nIf you haven't already installed the CLI, follow the [installation steps](https://github.com/stripe/stripe-cli#installation) in the project README. The CLI is useful for cloning samples and locally testing webhooks and Stripe integrations.\n\nIn your terminal shell, run the Stripe CLI command to clone the sample:\n\n```\nstripe samples create checkout-netlify-serverless\n```\n\nThe CLI will walk you through picking your integration type, server and client languages, and configuring your .env config file with your Stripe API keys.\n\n**Installing and cloning manually**\n\nIf you do not want to use the Stripe CLI, you can manually clone and configure the sample yourself:\n\n```\ngit clone https://github.com/stripe-samples/checkout-netlify-serverless\n```\n\nCopy the .env.example file into a file named .env in the functions folder. For example:\n\n```\ncp functions/.env.example functions/.env\n```\n\nYou will need a Stripe account in order to run the demo. Once you set up your account, go to the Stripe [developer dashboard](https://stripe.com/docs/development#api-keys) to find your API keys.\n\n```\nSTRIPE_PUBLISHABLE_KEY=\u003creplace-with-your-publishable-key\u003e\nSTRIPE_SECRET_KEY=\u003creplace-with-your-secret-key\u003e\n```\n\n**2. Run Netlify Functions locally:**\n\nYou can run the Netlify Functions locally with Netlify Dev:\n\n```\nnpm run functions\nnetlify dev\n```\n\n**3. [Optional] Run a webhook locally:**\n\nIf you want to test the `using-webhooks` integration with a local webhook on your machine, you can use the Stripe CLI to easily spin one up.\n\nMake sure to [install the CLI](https://stripe.com/docs/stripe-cli) and [link your Stripe account](https://stripe.com/docs/stripe-cli#link-account).\n\nIn a separate tab run\n\n```\nstripe listen --forward-to localhost:8888/.netlify/functions/handle-purchase\n```\n\nOr use the shorthand `npm run webhook`\n\nThe CLI will print a webhook secret key to the console. Set `STRIPE_WEBHOOK_SECRET` to this value in your .env file.\n\nYou should see events logged in the console where the CLI is running.\n\nWhen you are ready to create a live webhook endpoint, follow our guide in the docs on [configuring a webhook endpoint in the dashboard](https://stripe.com/docs/webhooks/setup#configure-webhook-settings).\n\n### 💫 Deploy with Netlify\n\n[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/stripe-samples/checkout-netlify-serverless)\n\n## Authors\n\n- [jlengstorf](https://twitter.com/jlengstorf)\n- [thorsten-stripe](https://twitter.com/thorwebdev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthorwebdev%2Fcheckout-netlify-serverless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthorwebdev%2Fcheckout-netlify-serverless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthorwebdev%2Fcheckout-netlify-serverless/lists"}