{"id":16333142,"url":"https://github.com/fzakaria/chargehound-stripe","last_synced_at":"2026-04-30T09:31:33.625Z","repository":{"id":50210741,"uuid":"123082377","full_name":"fzakaria/chargehound-stripe","owner":"fzakaria","description":"A sample app demonstrating chargehound \u0026 stripe integration","archived":false,"fork":false,"pushed_at":"2022-12-08T00:54:55.000Z","size":169,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-26T14:12:26.496Z","etag":null,"topics":["chargeback","chargehound","flask","python","stripe"],"latest_commit_sha":null,"homepage":"https://chargehound-demo-fzakaria.herokuapp.com/","language":"Python","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/fzakaria.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}},"created_at":"2018-02-27T06:16:10.000Z","updated_at":"2018-02-27T07:17:52.000Z","dependencies_parsed_at":"2023-01-25T01:45:50.163Z","dependency_job_id":null,"html_url":"https://github.com/fzakaria/chargehound-stripe","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/fzakaria%2Fchargehound-stripe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fzakaria%2Fchargehound-stripe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fzakaria%2Fchargehound-stripe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fzakaria%2Fchargehound-stripe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fzakaria","download_url":"https://codeload.github.com/fzakaria/chargehound-stripe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239303146,"owners_count":19616670,"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":["chargeback","chargehound","flask","python","stripe"],"created_at":"2024-10-10T23:34:28.854Z","updated_at":"2025-11-01T16:30:31.830Z","avatar_url":"https://github.com/fzakaria.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ChargeHound \u003c3 Stripe\n\nThis is a sample application showing integration of [Stripe](https://stripe.com) with\n[ChargeHound](https://www.chargehound.com).\n\n\u003e You can view a live version of this site running https://chargehound-demo-fzakaria.herokuapp.com. Please note however that it uses an in-memory database.\n\nThis is a very minimal [flask](flask.pocoo.org) application. There are many production best practices that have been ommitted in order to provide clarity and simplicity in demonstrating the integration.\n\nTo get started all you have to do is `make run`.\nThis will start a *development server* running on your local host on port *5000*.\n\n```\nexport STRIPE_PUBLISHABLE_KEY=pk_test_yoursecret\nexport STRIPE_SECRET_KEY=sk_test_yoursecret\nexport CHARGEHOUND_SECRET_KEY=test_yoursecret\nmake run\n```\n\nThe following routes are expose:\n\n**/** The base path, where you can see some albums and purchase them.\n\n**/charge/\u003csong_slug\u003e** The callback/webhook for stripe to initiate the charge after they've validated the credit card.\n\n**/chargehound/dispute** The callback/webhook for chargehound after they've discovered a dispute from their Stripe integration.\n\n**/admin/charges** An admin view that just returns the current in-memory charges processed.\n\n## Stripe Information\n\nThe integration with stripe is using the test keys -- they therefore accept the following test credit card values.\n\n*valid cc* 242 4242 4242 4242\n\n*disupte cc* 4000 0000 0000 0259\n\n*disputed cc as inquiry* 4000 0000 0000 1976\n\nFor more information on these test cards please see: https://stripe.com/docs/testing#disputes \u0026 https://stripe.com/docs/testing#cards.\n\nYou can read also about more about the [ChargeHound+Stripe Integration](https://testing-chargehound-pr-1027.herokuapp.com/docs?template=song-purchase\u0026processor=stripe).\n\n## Heroku Setup\n\nIn order to run on heroku the following were set:\n\n```\nCHARGEHOUND_SECRET_KEY: test_your_key\nCHARGE_HOUND_HOST:      test-api.chargehound.com\nFLASK_APP:              chargehound-demo.py\nFLASK_DEBUG:            1\nPREFERRED_URL_SCHEME:   https\nSERVER_NAME:            chargehound-demo-fzakaria.herokuapp.com\nSTRIPE_PUBLISHABLE_KEY: pk_test_your_key\nSTRIPE_SECRET_KEY:      sk_test_your_key\nWEB_CONCURRENCY:        1\n```\n\nThe one *gotcha* is that **WEB_CONCURRENCY** should be 1 since we are storing data in memory only -- otherwise gunicorn spawns multiple processes and they don't share data. This not a problem when storing data in a separate process like a database.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffzakaria%2Fchargehound-stripe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffzakaria%2Fchargehound-stripe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffzakaria%2Fchargehound-stripe/lists"}