Session mode. Note: 'setup' mode does not use line_items.
customerstring
ID of existing Customer to attach or prefill.
metadataobject
Key-value pairs to attach to the session.
cancel_urlstring
URL to redirect customers if they cancel payment.
line_itemsarray
Required
List of items the customer is purchasing. Each item must have either 'price' (ID of existing Price) or 'price_data' (inline price). Required for 'payment' and 'subscription' modes, not used in 'setup' mode.
success_urlstring
Required
URL to redirect customers after successful payment or setup.
client_reference_idstring
Your unique reference for the session.
payment_method_typesarray
Payment methods to accept (e.g., ['card', 'ideal', 'sepa_debit']). Defaults to ['card'] if not specified. Stripe recommends managing payment methods in the Dashboard and omitting this parameter to use dynamic payment methods, but a default is provided for convenience.
allow_promotion_codesboolean
Whether to allow promotion codes in the session.
Observable output
data
Required
Data from the action execution
errorstring
Error if any occurred during the execution of the action
successfulboolean
Required
Whether or not the action execution was successful or not