URL to redirect to on cancel
OptionalclientYour own reference id echoed back on the session
OptionalcustomerPrefill the email for a new customer (ignored when customerId is set)
OptionalcustomerExisting customer to attach the session to
OptionalidempotencyIdempotency key (defaults to a generated UUID)
Line items (price + quantity)
OptionalmetadataKey/value metadata attached to the session
OptionalmodeCheckout mode.
URL to redirect to on success
Options for creating a Checkout Session