Product
Source:
src/Stripe/Product.ts
A Stripe Product — the catalog item that Prices, invoices, and Checkout attach to. Name, description, active, images, and metadata are updated in place. Deleting a product is only possible when it has no Prices.
Creating a Product
Section titled “Creating a Product”Generated name
const product = yield* Stripe.Product("pro-plan");Named product with description
const product = yield* Stripe.Product("pro-plan", { name: "Pro Plan", description: "Billed monthly",});Catalog details
Section titled “Catalog details”const product = yield* Stripe.Product("pro-plan", { name: "Pro Plan", description: "Billed monthly", active: false, images: ["https://example.com/pro.png"], metadata: { tier: "pro" },});Destroying a Product
Section titled “Destroying a Product”// alchemy destroy deletes the Product. If prices remain, Stripe// rejects the delete and Alchemy archives it (`active: false`).