Commerce
Create price
Create a new price for an existing Stripe product.
Optionally creates a payment link.
Parameters#
product_idstringrequiredExisting Stripe product ID (e.g., "prod_...")
amount_centsnumberrequiredPrice in cents (e.g., 2500 for $25.00)
currencystringdefault: usdCurrency code (default: "usd")
recurringobjectdefault: {}For subscriptions, provide interval info (e.g., {"interval": "month", "interval_count": 1})
create_payment_linkbooleandefault: trueWhether to create a payment link for this price (default: true)
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)