Learn more about our ✨ new ✨ native MCP
Directus Logo
  • Use Cases and Features
    • Headless CMS
      Manage and deliver content with ease
    • Backend-as-a-Service
      Build and ship applications faster
    • Headless Commerce
      A single source of truth for products
    • 100+ More Use Cases
      Build anything (or everything)
    • Instant APIs
      Connect a database, get REST + GraphQL APIs
    • Granular Policy-Based Auth
      Provide secure, autonomous data access
    • Visual Automation Builder
      Automate content and data workflows with ease
    • 50+ More Features
      Get everything you need out-of-the-box
    Project Showcase
    Built With Directus

    Built With Directus

    See what everyone's been building with Directus

  • Learn More
    • Blog
      Read our latest articles and guides
    • Case Studies
      Case studies and success stories
    • Community
      Join our new community forum.
    • Agency Directory
      Browse our list of agency partners
    • About Us
      Learn more about Directus and the team
    • Wall of Love
      See what others are saying about us
    • Contact
      Have a general inquiry or question for us?
    • Support
      Reach out to Directus support
    Watch Directus TV
    Directus TV
    Video

    Directus TV

    Go down the rabbit hole with hours of original video content from our team.

  • Developers
  • Enterprise
  • Pricing
Book a DemoGet StartedLog In
GitHub logo33,618
Directus Marketplace
Marketplace
  1. Extensions
  2. Integrations
  3. Templates
Back to Extensions
bundle

Stripe

A Directus extension that supports building flows for Stripe webhooks

directus-extension-stripe

A 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!

https://github.com/programmarchy/directus-extension-stripe/assets/622192/0cdc92eb-375d-4f16-945a-43d561c3a80a

Details

This is a bundle extension that contains a middleware hook that verifies the Stripe-Signature header, 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}}.

Check out the example for more details.

Setup Instructions

Once you've installed the extension, to connect Stripe, you can either set the following environment variables:

  • STRIPE_SECRET_KEY: Your Stripe secret key (e.g. sk_...)
  • STRIPE_WEBHOOK_PATH: The path to your webhook, relative to your Directus base URL (e.g. /flows/triggers/...)
  • STRIPE_WEBHOOK_SECRET: Your webhook's secret (e.g. whsec_...)

Or you can configure these variables on the Settings page in Directus:

Settings

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.

Marketplace

Currently, 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.

directus-extension-stripe

npm i directus-extension-stripe
This extension is not sandboxed and can only be installed in self-hosted instances using npm. Learn more.
programmarchy
1.0.0
Works with v10.10.0+
Updated 9 months ago
MIT License
666.6 KiB (5 files)
npm
  • Directus LogoDirectus Logo

    A composable backend to build your Headless CMS, BaaS, and more. 

  • Solutions
    • Headless CMS
    • Backend-as-a-Service
    • Product Information
    • 100+ Things to Build
  • Resources
    • Documentation
    • Guides
    • Community
    • Release Notes
  • Support
    • Issue Tracker
    • Feature Requests
    • Community Chat
    • Cloud Dashboard
  • Organization
    • About
    • Careers
    • Brand Assets
    • Contact
©2025 Monospace Inc
  • Cloud Policies
  • License
  • Terms
  • Privacy