Commerce
Create product
Create a Stripe product on the user's connected account.
Optionally creates a price and payment link.
Parameters#
namestringrequiredProduct name (e.g., "Consulting Session", "E-book Download")
descriptionstringdefault: ""Product description (optional)
amount_centsnumberdefault: -1Price in cents (e.g., 1000 for $10.00). If provided, creates a price and payment link.
currencystringdefault: usdCurrency code (default: "usd")
recurringobjectdefault: {}For subscriptions, provide interval info (e.g., {"interval": "month", "interval_count": 1})
redirect_urlstringdefault: ""URL to redirect customer to after payment (mutually exclusive with hosted_confirmation_message)
hosted_confirmation_messagestringdefault: ""Custom message for Stripe's hosted confirmation page (mutually exclusive with redirect_url)
testmodebooleandefault: falseUse test mode (default: false). Test mode is useful for testing before going live.