{"id":28714687,"url":"https://github.com/rsusik/stripe-fastapi-demo","last_synced_at":"2025-08-01T22:43:31.933Z","repository":{"id":41376060,"uuid":"398656602","full_name":"rsusik/stripe-fastapi-demo","owner":"rsusik","description":"Stripe payment in FastAPI","archived":false,"fork":false,"pushed_at":"2021-08-23T19:26:59.000Z","size":17,"stargazers_count":20,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-04T03:09:51.028Z","etag":null,"topics":["api","demo","example","fast","fastapi","payment","python","stripe","stripe-fastapi-demo","stripe-fastapi-example","stripe-python-demo","stripe-python-example"],"latest_commit_sha":null,"homepage":"","language":"CSS","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/rsusik.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}},"created_at":"2021-08-21T21:08:24.000Z","updated_at":"2023-02-23T00:23:12.000Z","dependencies_parsed_at":"2022-09-05T12:31:19.418Z","dependency_job_id":null,"html_url":"https://github.com/rsusik/stripe-fastapi-demo","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/rsusik/stripe-fastapi-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsusik%2Fstripe-fastapi-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsusik%2Fstripe-fastapi-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsusik%2Fstripe-fastapi-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsusik%2Fstripe-fastapi-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rsusik","download_url":"https://codeload.github.com/rsusik/stripe-fastapi-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsusik%2Fstripe-fastapi-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259906193,"owners_count":22929978,"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":["api","demo","example","fast","fastapi","payment","python","stripe","stripe-fastapi-demo","stripe-fastapi-example","stripe-python-demo","stripe-python-example"],"created_at":"2025-06-15T01:08:14.201Z","updated_at":"2025-08-01T22:43:31.902Z","avatar_url":"https://github.com/rsusik.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stripe payment using FastAPI\n\n## Accept a payment (prebuilt checkout page using fastapi)\n\nThis code use [FastAPI](https://github.com/tiangolo/fastapi) and [Stripe](https://stripe.com/) for payments and is mostly based on [this example](https://github.com/stripe-samples/accept-a-payment/tree/main/prebuilt-checkout-page) which use [Flask](https://github.com/pallets/flask).\n\nThis repository includes example of Prebuilt Checkout page integration. Below is comparison of both methods.\n\n### Methods\n\n|**Prebuilt Checkout page** ([docs](https://stripe.com/docs/payments/accept-a-payment?ui=checkout))| **Custom payment flow** ([docs](https://stripe.com/docs/payments/accept-a-payment?ui=elements)) |\n|---|---|\n| Lower complexity. | Higher complexity. |\n| Customize logo, images, and colors. | Customize all components with CSS. |\n| Add payment method types with a single line change. | Implement each payment method type as a custom integration. |\n| Built-in support for Apple Pay, and Google Pay. | Integrate Apple Pay and Google Pay with extra code.|\n| Redirect to Stripe hosted page. | Customers stay on your site. |\n| Small refactor to collect recurring payments. | Large refactor to collect recurring payments. |\n| Input validation and error handling built in. | Implement your own input validation and error handling. |\n| Localized in 25+ languages. | Implement your own localization. |\n\n\n### Payment Method Type Support\n\n|Payment Method Type | [Prebuilt Checkout page](./prebuilt-checkout-page) ([docs](https://stripe.com/docs/payments/accept-a-payment?ui=checkout))| [Custom payment flow](./custom-payment-flow) ([docs](https://stripe.com/docs/payments/accept-a-payment?ui=elements)) |\n|---|---|---|\n|ACH Credit Transfer|  |  |\n|ACH Debit|  |  |\n|Afterpay/Clearpay| ✅ | ✅ |\n|Alipay| ✅ | ✅ |\n|Apple Pay| ✅ | ✅ |\n|Bacs Direct Debit| ✅ |  |\n|Bancontact| ✅ | ✅ |\n|BECS Direct Debit| | ✅ |\n|Boleto| ✅ | ✅ |\n|Cards| ✅ | ✅ |\n|EPS| ✅ | ✅ |\n|FPX| ✅ | ✅ |\n|giropay| ✅ | ✅ |\n|Google Pay| ✅ | ✅ |\n|GrabPay| ✅ | ✅ |\n|iDEAL| ✅ | ✅ |\n|Klarna|  |  |\n|Multibanco| | ✅ |\n|OXXO| | ✅ |\n|Przelewy24 (P24)| ✅ | ✅ |\n|SEPA Direct Debit| ✅ | ✅ |\n|Sofort| ✅ | ✅ |\n|WeChat Pay|  |  |\n\n\n### Installation\nYou'll find more detailed instructions for each integration type in the\nrelevant READMEs (links to original repo):\n\n- [Prebuilt Checkout page](https://github.com/stripe-samples/accept-a-payment/tree/main/prebuilt-checkout-page/README.md)\n- [Custom payment flow](https://github.com/stripe-samples/accept-a-payment/tree/main/custom-payment-flow/README.md)\n\n## Origin\n\nThis code was originally based on Flask, and the source codes may be found at https://github.com/stripe-samples/accept-a-payment.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsusik%2Fstripe-fastapi-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frsusik%2Fstripe-fastapi-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsusik%2Fstripe-fastapi-demo/lists"}