Skip to main content

Stripe

@goodcraft/stripev2026.06.14.1· 1d agoMODELS
01README

Stripe — snapshot products and prices, and idempotently ensure products, prices, and webhook endpoints exist. Captures price IDs (e.g. STRIPE_PRICE_PRO) and returns vaulted webhook signing secrets.

02Models1
@goodcraft/stripev2026.06.14.1stripe.ts

Global Arguments

ArgumentTypeDescription
secretKeystring
baseUrlstring
fn sync()
List the account's products and prices (read-only; proves the key and captures price IDs)
fn ensureProduct(name: string, description?: string, dryRun: boolean)
Idempotently ensure an active product with the given name exists (create if missing). dryRun=true (default) plans without creating.
ArgumentTypeDescription
namestring
description?string
dryRunboolean
fn ensurePrice(product: string, unitAmount: number, currency: string, interval?: string, nickname?: string, dryRun: boolean)
Idempotently ensure a price exists for a product (matched on product+amount+currency+interval). dryRun=true (default) plans without creating.
ArgumentTypeDescription
productstring
unitAmountnumber
currencystring
interval?string
nickname?string
dryRunboolean
fn ensureWebhook(url: string, events: array, dryRun: boolean)
Idempotently ensure a webhook endpoint exists for a URL (create if missing). The signing secret is returned only on creation and is vaulted. dryRun=true (default) plans without creating.
ArgumentTypeDescription
urlstring
eventsarray
dryRunboolean

Resources

products(infinite)— Snapshot of the products in the Stripe account
prices(infinite)— Snapshot of the prices in the Stripe account
productEnsure(infinite)— Result of the last ensureProduct call
priceEnsure(infinite)— Result of the last ensurePrice call
webhookEnsure(infinite)— Result of the last ensureWebhook call
03Stats
A
100 / 100
Downloads
0
Archive size
8.9 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
04Platforms
05Labels