Product
The Product resource lets you create and manage Stripe Products for your Stripe account.
Minimal Example
Section titled “Minimal Example”Create a basic digital product:
import { Product } from "alchemy/stripe";
const product = await Product("basic-software", { name: "Basic Software License", description: "Single-user license for basic software package",});
Physical Product
Section titled “Physical Product”Create a physical product with shipping details:
import { Product } from "alchemy/stripe";
const product = await Product("premium-hardware", { name: "Premium Hardware Kit", description: "Complete hardware kit with premium components", shippable: true, images: ["https://example.com/hardware-kit.jpg"], unitLabel: "kit", statementDescriptor: "PREMIUM HW KIT",});
Service Product
Section titled “Service Product”Create a service product with tax code:
import { Product } from "alchemy/stripe";
const product = await Product("consulting", { name: "Professional Consulting", description: "Expert consulting services", type: "service", taxCode: "txcd_10000000", metadata: { industry: "technology", expertise: "cloud", },});