drivethru-stripe for Openclaw

Look up products in your Stripe catalog and generate hosted Checkout Sessions for one-time payments or subscriptions.

zmtucker
v0.2.0
May 25, 2026
0
642
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install drivethru-stripe

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install drivethru-stripe using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is drivethru-stripe?

The drivethru-stripe skill is a robust tool designed to integrate seamlessly with Openclaw Skills. It allows AI coding agents to search and browse Stripe product catalogs, view active pricing options, and immediately generate hosted Stripe Checkout Sessions. This enables a frictionless payment experience without needing to manage complex, direct card-handling flows.

By leveraging this component of Openclaw Skills, developers can build agents capable of managing transactions, billing customers, and initiating subscriptions with minimal manual intervention. It offers a secure bridge to Stripe's production-ready checkout pages, supporting one-time payments, ongoing subscriptions, and setup modes safely from your agent workspace.

drivethru-stripe Use Cases

  • Browsing and querying the Stripe product catalog for pricing details.
  • Generating immediate payment links for specific catalog items.
  • Initiating customer subscription plans by extracting active price IDs.
  • Billing customers dynamically for on-the-fly custom orders.
  • Creating highly customized Stripe-hosted checkout pages with promo codes.

How drivethru-stripe Works

  1. Environment Verification: The system checks for the presence of the STRIPE_SECRET_KEY in the execution environment to ensure secure authentication.
  2. Product Catalog Search: The agent executes scripts/list_products.py to retrieve the relevant product structures, active prices, and default metadata.
  3. Checkout Selection: Based on the returned price IDs, the agent prepares a payload defining the quantity, mode (payment, subscription, or setup), and redirect URLs.
  4. Session Creation: The agent executes scripts/create_checkout_session.py to send the payload to the Stripe API.
  5. URL Delivery: The script outputs a secure Stripe Checkout URL, which the agent presents to the user to safely complete the transaction.

drivethru-stripe Setup

To install and configure this integration within your Openclaw Skills workspace, follow these steps:

Ensure that you have python3 and uv installed. Configure your environment with your Stripe secret key:

export STRIPE_SECRET_KEY="sk_test_your_secret_key_here"

Install the required Python dependencies:

uv pip install "stripe>=10.0.0"

You may optionally configure default redirect links:

export STRIPE_DEFAULT_SUCCESS_URL="https://example.com/success"
export STRIPE_DEFAULT_CANCEL_URL="https://example.com/cancel"

drivethru-stripe Data Schema & Taxonomy

This skill works with standardized JSON payloads passed over stdin. Here is the structure of the data schema:

Product Search Input Schema

Field Type Description Required
query string Free-text search or raw Stripe search query No
ids array Retrieve specific products by product ID No
active boolean Filter by active status (defaults to true) No
limit integer Max items to return (1-100, defaults to 10) No
include_inactive_prices boolean Include inactive prices in response No

Checkout Session Input Schema

Field Type Description Required
mode string Payment mode (payment, subscription, setup) Yes
line_items array List of items containing price (or inline price_data) and quantity Yes
success_url string URL redirected to after successful checkout Yes
cancel_url string URL redirected to if payment is cancelled Yes
customer_email string Optional customer email pre-fill No
allow_promotion_codes boolean Toggle promotional discount codes No

drivethru-stripe Advanced Features

  • Subscription Support: Automatically shifts checkout to subscription mode when dynamic line items containing recurring price structures are passed.
  • Flexible Price Configuration: Supports both existing price lookup and dynamically defined inline pricing via price_data payloads.
  • Stripe Search Syntax: Supports complex search filters using Stripe's native search API syntax natively inside Openclaw Skills queries.
  • Configurable URL Placeholders: Dynamic insertion of the {CHECKOUT_SESSION_ID} placeholder in standard redirects to receive transaction confirmation keys.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*