CheckoutSessionBase
- modeType: stringenumrequired
The mode of the Checkout Session.
values- payment
Standard one-time payment.
- setup
Set up a payment method for future use.
- subscription
Coming soon. Not available yet.
- afterType: object · AfterCompletion
_completion After completion behavior for the Checkout Session.
- hostedType: object · AfterCompletionHostedConfirmation
After completion behavior for the Checkout Session.
- redirectType: object · AfterCompletionRedirect
After completion behavior for the Checkout Session.
- typeType: string · AfterCompletionTypeenum
After completion behavior for the Checkout Session.
values- redirect
- hosted
_confirmation
- cancelType: string
_url If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website.
- clientType: string
_customer _id An identifier of the customer in the merchant's system. Used to associate the Checkout and corresponding payments created from the Checkout. Required for SEPA payments - this will ensure that your customer is given a virtual iban that is unique to them and will enable Paypercut to reconcile the payment.
- clientType: string
_reference _id A free-form reference from the merchant's system. Typically used to identify the checkout in the merchant's system. This can be a customer ID, a cart ID, or similar, and can be used to reconcile the session with your internal systems.
- currencyType: object · Currency
Three-letter ISO currency code
- isoType: stringrequired
Three-letter ISO currency code
- scaleType: integerrequired
Number of decimal places for this currency
- customerType: string | nullmax length:100
ID of an existing Customer, if one exists.
- customerType: stringenum
_creation Configure whether a Checkout Session creates a Customer during Session confirmation. When a Customer is not created, you can still retrieve email, address, and other customer data entered in Checkout with customer_details. Can only be set in
paymentmode.values- always
- if
_required
- customerType: string | null
_email If provided, this value will be used when the Customer object is created. If not provided, customers will be asked to enter their email address. Use this parameter to prefill customer data if you already have an email on file. To access information about the customer once a session is complete, use the
customerfield. - descriptionType: string
A free-form reference to describe the checkout
- expiresType: string | nullFormat: date-time
_at Expiry time for the checkout. After this time, the checkout will no longer be available for payment. Defaults to 24h after creation.
- lineType: array object[] · LineItem[]
_items Details about the products sold or services provided
- quantityType: integerFormat: int64min:1max:10000000000required
Quantity of the item
- metadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata.Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata.- propertyType: string
Name
- priceType: string · PriceIdmax length:100
- price
_data Prices define the unit cost, currency, and (optional) billing cycle for both recurring and one-time purchases of products. Products help you track inventory or provisioning, and prices help you track payment terms. Different physical goods or levels of service should be represented by products, and pricing options should be represented by prices. This approach lets you change prices without having to change your provisioning scheme. For example, you might have a single "gold" product that has prices for $10/month, $100/year, and €9 once.
- activeType: boolean
Whether the price can be used for new purchases.
- billingType: stringenum
_scheme Describes how to compute the price per period. Either
per_unitortiered.per_unitindicates that the fixed amount (specified inunit_amountorunit_amount_decimal) will be charged per unit inquantity(for prices withusage_type=licensed), or per unit of total usage (for prices withusage_type=metered).tieredindicates that the unit pricing will be computed using a tiering strategy as defined using thetiersandtiers_modeattributes.values- per
_unit - tiered
- createdType: integerFormat: date-time nullable
Time at which the object was created. Measured in seconds since the Unix epoch.
- currencyType: stringFormat: currency
Three-letter ISO currency code, in lowercase. Must be a supported currency.
- idType: stringmax length:5000
Unique identifier for the object.
- livemodeType: boolean
Has the value
trueif the object exists in live mode or the valuefalseif the object exists in test mode. - lookupType: string | null
_key max length:5000A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters.
- product
The ID of the product this price is associated with.
- productType: object · Product
_data These fields can be used to create a new product that this price will belong to.
- recurringType: object · Recurring nullable
The recurring components of a price such as
intervalandusage_type. - typeType: stringenum
One of
one_timeorrecurringdepending on whether the price is for a one-time purchase or a recurring (subscription) purchase.values- one
_time - recurring
- unitType: integer | null
_amount The unit amount in cents (or local equivalent) to be charged, represented as a whole integer if possible. Only set if
billing_scheme=per_unit. - unitType: string | nullFormat: decimal
_amount _decimal The unit amount in cents (or local equivalent) to be charged, represented as a decimal string with at most 12 decimal places. Only set if
billing_scheme=per_unit.
- localeType: stringenum
The IETF language tag of the locale Checkout is displayed in. If blank or auto, the browser's locale is used.
values- auto
- bg
- bg
- B G - cs
- cs
- C Z
- metadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata.Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata.- propertyType: string
Name
- paymentType: object · PaymentIntentData nullable
_intent _data Create-time PaymentIntent options accepted when creating a Checkout Session.
- amountType: integer · amountWithCurrencyPrecisionFormat: int64
Amount intended to be collected by this PaymentIntent.
- captureType: stringenum
_method Controls when the funds will be captured from the customer's account.
values- automatic
Paypercut automatically captures funds when the customer authorizes the payment.
- manual
Place a hold on the funds when the customer authorizes the payment, but don't capture the funds until later.
- customerType: string · Customer IDmax length:100
- onType: string
_behalf _of Account ID to which the payment will be credited.
- paymentType: string · PaymentMethodId
_method Single-use or reusable payment method to use for the Payment Intent created by the Checkout Session.
- setupType: string | null · SetupFutureUsageenum
_future _usage Indicates that you intend to make future payments with the Payment Intent's payment method. Use
on_sessionwhen future payments will be made while the customer is present in your checkout flow. Useoff_sessionwhen future payments may happen while the customer is not present, such as subscriptions or saved-card charges. If the Payment Intent has a customer, Paypercut can attach and promote a single-use payment method to that customer after the Payment Intent is confirmed and the customer completes any required authentication. When this value is provided during confirmation, it takes precedence over the value stored on the Payment Intent.values- off
_session - on
_session
- statementType: string | null
_descriptor max length:100Text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor.
- paymentType: array string[]
_method _types A list of the types of payment methods (e.g. card) this Checkout Session is allowed to accept.
- returnType: string
_url The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. This parameter is required if ui_mode is embedded or custom and redirect-based payment methods are enabled on the session.
- savedType: object · SavedPaymentMethodOptions
_payment _method _options - paymentType: stringenum
_method _save Controls whether Checkout displays an option to save a new payment method for future on-session use. This parameter defaults to
disabled.values- disabled
- enabled
- shippingType: array object[] · CheckoutShippingOption[] …5
_options Shipping options offered for this Checkout Session. Provide one to five inline
shipping_rate_dataoptions when the customer should choose a shipping rate during checkout.A shipping option offered for a Checkout Session.
- shippingType: string | null
_rate Existing shipping rate ID. Checkout Session creation currently supports inline
shipping_rate_dataoptions. - shippingType: object · CheckoutShippingRateData nullable
_rate _data Inline shipping rate data used to create a Checkout Session shipping rate.
- submitType: string | nullenum
_type Describes the type of transaction being performed by Checkout in order to customize relevant text on the page, such as the submit button.
submit_typecan only be specified on Checkout Sessions inpaymentmode. If blank orauto,payis used.values- auto
- book
- donate
- pay
- subscribe
- successType: string
_url The URL to which Paypercut should send customers when payment or setup is complete. This parameter is not allowed if ui_mode is embedded or custom. If you'd like to use information from the successful Checkout Session on your page, read the guide on customizing your success page.
- uiType: stringenum
_mode The UI mode of the Session. Defaults to
hosted.values- custom
- embedded
- hosted
- walletType: object · CheckoutSessionWalletOptions
_options Wallet-specific configuration for this Checkout Session.
- appleType: object · CheckoutApplePayWalletOptions
_pay - googleType: object · CheckoutGooglePayWalletOptions
_pay

