{"id":20739384,"url":"https://github.com/cecilphillip/stripesimplecheckout","last_synced_at":"2025-05-06T22:25:59.355Z","repository":{"id":149106250,"uuid":"460050658","full_name":"cecilphillip/StripeSimpleCheckout","owner":"cecilphillip","description":"Demo showing how to use Stripe Checkout with Blazor and Minimal APIs in .NET","archived":false,"fork":false,"pushed_at":"2022-02-16T17:56:01.000Z","size":76,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T03:25:45.691Z","etag":null,"topics":["blazor","csharp","dotnet","stripe"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cecilphillip.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-02-16T14:57:10.000Z","updated_at":"2023-03-07T03:24:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"50695cd6-b6e5-4877-9540-6252dce24de2","html_url":"https://github.com/cecilphillip/StripeSimpleCheckout","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cecilphillip%2FStripeSimpleCheckout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cecilphillip%2FStripeSimpleCheckout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cecilphillip%2FStripeSimpleCheckout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cecilphillip%2FStripeSimpleCheckout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cecilphillip","download_url":"https://codeload.github.com/cecilphillip/StripeSimpleCheckout/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252778030,"owners_count":21802694,"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":["blazor","csharp","dotnet","stripe"],"created_at":"2024-11-17T06:24:47.439Z","updated_at":"2025-05-06T22:25:59.327Z","avatar_url":"https://github.com/cecilphillip.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Accepting payments with Blazor, ASP.NET Core Minimal APIs, and Stripe Checkout\n\nThe sample was ported from [Charles Watkins'](https://github.com/charlesw-stripe) demo from Vue Nation 2022 on [Getting started with payments in Vue 3](https://github.com/charlesw-stripe/vuejs-nation). Why do JavaScript folks have to have all the fun!?!\n\nThere's a lot of work that goes into accepting online payments. It can be hard to create secure and compliant payment forms that are accessible to your global customer base. With [Stripe checkout](https://stripe.com/payments/checkout), you get a secure, Stripe-hosted payment page that lets you collect payments quickly across devices with support for a growing number of [countries](https://stripe.com/global).\n\n## What's in the box\nThis sample is split into two applications\n* [SimpleCheckoutServer](src/SimpleCheckoutServer) - ASP.NET Core Minimal API backend that hosts 2 endpoints for the products and checkout work redirect.\n* [SimpleCheckoutBlazor](src/SimpleCheckoutBlazor) - Frontend UI built with Blazor and Tailwind CSS.\n\n## Requirements\n* .NET SDK 6.0+ \n* Node JS 14+\n* A FREE [Stripe Account](https://dashboard.stripe.com/register)\n\n## Running the demo\n### Obtain your Stripe Secret Key 🕵🏽‍♂️\nBefore running the code, you'll need to retrieve your Stripe Secret Key from your account dashboard.\n* Log in to your [Stripe Dashboard](https://dashboard.stripe.com/)\n* Make sure you're in test mode. The toggle is located at the top right corner of the page.\n* Click on the `Developers` button, then select `API Keys` in the left menu\n* Under `Standard Keys`, reveal and copy your `Secret key`.\n\n\u003e You can learn more about API Keys and Modes at this link =\u003e https://stripe.com/docs/keys\n* Add your key to the `appsettings.json` configuration file in the [SimpleCheckoutServer](src/SimpleCheckoutServer) project.\n```json\n  \"Stripe\": {\n    \"STRIPE_SECRET_KEY\": \"PASTE YOUR KEY HERE\"\n  }\n```\n\n### Run the code 👨🏽‍💻\nNavigate into the src/ directory\n```shell\ncd  src/\n```\n\nRun the build. This will restore both the node and .NET packages.\n```shell\ndotnet build\n```\nRun the project\n```shell\ndotnet run --project SimpleCheckoutServer\n```\n\nBy default, the application should start running on http://localhost:4242\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcecilphillip%2Fstripesimplecheckout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcecilphillip%2Fstripesimplecheckout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcecilphillip%2Fstripesimplecheckout/lists"}