Commerce

Create price

Create a new price for an existing Stripe product.

Optionally creates a payment link.

Parameters#

product_idstringrequired

Existing Stripe product ID (e.g., "prod_...")

amount_centsnumberrequired

Price in cents (e.g., 2500 for $25.00)

currencystringdefault: usd

Currency code (default: "usd")

recurringobjectdefault: {}

For subscriptions, provide interval info (e.g., {"interval": "month", "interval_count": 1})

create_payment_linkbooleandefault: true

Whether 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: false

Use test mode (default: false)