Skip to content

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.

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",
});
const product = yield* Stripe.Product("pro-plan", {
name: "Pro Plan",
description: "Billed monthly",
active: false,
images: ["https://example.com/pro.png"],
metadata: { tier: "pro" },
});
// alchemy destroy deletes the Product. If prices remain, Stripe
// rejects the delete and Alchemy archives it (`active: false`).