{"id":24430794,"url":"https://github.com/programmarchy/directus-extension-stripe","last_synced_at":"2025-04-28T12:22:58.116Z","repository":{"id":230784535,"uuid":"780170125","full_name":"programmarchy/directus-extension-stripe","owner":"programmarchy","description":"A Directus extension that supports building flows for Stripe webhooks","archived":false,"fork":false,"pushed_at":"2025-02-12T23:55:36.000Z","size":1241,"stargazers_count":11,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-30T09:31:34.905Z","etag":null,"topics":["directus","directus-extension"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/programmarchy.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":"2024-03-31T22:17:59.000Z","updated_at":"2025-03-17T10:16:48.000Z","dependencies_parsed_at":"2024-04-05T14:28:32.226Z","dependency_job_id":"4cbffd52-76e2-4f2a-aff8-a2837963d194","html_url":"https://github.com/programmarchy/directus-extension-stripe","commit_stats":null,"previous_names":["programmarchy/directus-extension-stripe"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmarchy%2Fdirectus-extension-stripe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmarchy%2Fdirectus-extension-stripe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmarchy%2Fdirectus-extension-stripe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmarchy%2Fdirectus-extension-stripe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/programmarchy","download_url":"https://codeload.github.com/programmarchy/directus-extension-stripe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251311725,"owners_count":21569084,"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":["directus","directus-extension"],"created_at":"2025-01-20T14:57:52.586Z","updated_at":"2025-04-28T12:22:58.098Z","avatar_url":"https://github.com/programmarchy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# directus-extension-stripe\n\nA Directus extension that allows you to build flows and custom endpoints to handle Stripe Webhooks and make Stripe API calls. The best part is that it's fully integrated with Directus accountability and permissions. It's a small but mighty extension if you are looking to integrate Stripe! \n\nhttps://github.com/programmarchy/directus-extension-stripe/assets/622192/0cdc92eb-375d-4f16-945a-43d561c3a80a\n\n## Details\n\nThis is a bundle extension that contains a middleware hook that [verifies the `Stripe-Signature` header](https://docs.stripe.com/webhooks#verify-webhook-signatures-with-official-libraries), and an operation node that injects the Stripe secret key into a flow so you can make API requests with the request node e.g. `GET https://{{stripe_secret_key}}:@api.stripe.com/v1/customers/{{stripe_customer_id}}`.\n\nCheck out the [example](example) for more details.\n\n## Setup Instructions\n\nOnce you've [installed the extension](https://docs.directus.io/extensions/installing-extensions.html), to connect Stripe, you can either set the following environment variables:\n\n- `STRIPE_SECRET_KEY`: Your [Stripe secret key](https://dashboard.stripe.com/apikeys) (e.g. `sk_...`)\n- `STRIPE_WEBHOOK_PATH`: The path to your [webhook](https://dashboard.stripe.com/webhooks), relative to your Directus base URL (e.g. `/flows/triggers/...`)\n- `STRIPE_WEBHOOK_SECRET`: Your webhook's secret (e.g. `whsec_...`)\n\nOr you can configure these variables on the Settings page in Directus:\n\n\u003cimg width=\"1552\" alt=\"Settings\" src=\"https://github.com/programmarchy/directus-extension-stripe/assets/622192/985960ef-cb10-4763-aa67-e946df38a006\"\u003e\n\n**NOTE**: In order for the settings to appear and for the middleware hook to be installed, you must restart your Directus instance after installing the extension. This is because they rely on the `app.before` and `middleware.before` events which only occur when Directus starts.\n\n### Marketplace\n\nCurrently, this extension is not sandboxed so it won't appear in the Directus Marketplace by default. However, you can set `MARKETPLACE_TRUST=\"all\"` so the extension becomes visible.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogrammarchy%2Fdirectus-extension-stripe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprogrammarchy%2Fdirectus-extension-stripe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogrammarchy%2Fdirectus-extension-stripe/lists"}