{"id":20375320,"url":"https://github.com/cba85/stripe-checkout-subscriptions-node","last_synced_at":"2026-04-11T17:38:39.709Z","repository":{"id":185438634,"uuid":"648580277","full_name":"cba85/stripe-checkout-subscriptions-node","owner":"cba85","description":"💳 Stripe Checkout Subscriptions demo using Node and Express.js","archived":false,"fork":false,"pushed_at":"2023-06-02T09:58:36.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T21:44:10.933Z","etag":null,"topics":["expressjs","nodejs","stripe-checkout"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/cba85.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}},"created_at":"2023-06-02T09:54:03.000Z","updated_at":"2024-06-25T22:38:41.000Z","dependencies_parsed_at":"2023-09-09T12:01:05.616Z","dependency_job_id":null,"html_url":"https://github.com/cba85/stripe-checkout-subscriptions-node","commit_stats":null,"previous_names":["cba85/stripe-checkout-subscriptions-node"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cba85/stripe-checkout-subscriptions-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cba85%2Fstripe-checkout-subscriptions-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cba85%2Fstripe-checkout-subscriptions-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cba85%2Fstripe-checkout-subscriptions-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cba85%2Fstripe-checkout-subscriptions-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cba85","download_url":"https://codeload.github.com/cba85/stripe-checkout-subscriptions-node/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cba85%2Fstripe-checkout-subscriptions-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31689762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["expressjs","nodejs","stripe-checkout"],"created_at":"2024-11-15T01:29:55.654Z","updated_at":"2026-04-11T17:38:39.682Z","avatar_url":"https://github.com/cba85.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stripe Checkout Subscriptions demo\n\nBased on https://github.com/stripe-samples/checkout-single-subscription\n\n## Demo\n\nThe demo is running in test mode -- use `4242424242424242` as a test card number with any CVC + future expiration date.\n\nUse the `4000002500003155` test card number to trigger a 3D Secure challenge flow.\n\nRead more about testing on Stripe at https://stripe.com/docs/testing.\n\n## How to run locally\n\n### 1. Clone and configure the sample\n\n```sh\ngit clone https://github.com/stripe-samples/checkout-single-subscription\n```\n\nCopy the `.env.example` file into a file named `.env` in the folder of the server you want to use. For example:\n\n```sh\ncp .env.example server/node/.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/quickstart#api-keys) to find your API keys.\n\n```sh\nSTRIPE_PUBLISHABLE_KEY=\u003creplace-with-your-publishable-key\u003e\nSTRIPE_SECRET_KEY=\u003creplace-with-your-secret-key\u003e\n```\n\n### 2. Create Products and Prices on Stripe\n\nThis sample requires [Price](https://stripe.com/docs/api/prices/object) IDs to create the Checkout page. Products and Prices are objects on Stripe that let you model a subscription.\n\nYou can create Products and Prices [in the dashboard](https://dashboard.stripe.com/products). Create two recurring Prices to run this sample.\n\n**Update PRICE_ID variables in your .env file**\n\nNext, open `.env` in the folder of the server you want to use, and update the values for `PRICE_ID` with the price IDs of the prices you added.\n\n### 3. Confirm that you have set the account name\n\nIn order to use Checkout, you must set an account or business name at https://dashboard.stripe.com/account\n\n### 4. Follow the server instructions on how to run:\n\n```sh\ncd server/node\nnpm install\nnpm start\n```\n\n**Customize your branding**\n\nTo customize your icon, logo and colors for Checkout and the Customer Portal, go to [Branding settings](https://dashboard.stripe.com/account/branding) in the Dashboard.\n\n**Run a webhook locally:**\n\nYou can use the Stripe CLI to easily spin up a local webhook.\n\nFirst [install the CLI](https://stripe.com/docs/stripe-cli) and [link your Stripe account](https://stripe.com/docs/stripe-cli#link-account).\n\n```sh\n./stripe listen --forward-to \"localhost:4242/webhook\"\n```\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).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcba85%2Fstripe-checkout-subscriptions-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcba85%2Fstripe-checkout-subscriptions-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcba85%2Fstripe-checkout-subscriptions-node/lists"}