CheckoutSession
ObjectData required to display the hosted checkout page.
Fields
- CheckoutFieldRequirement!
companyNameRequirement Whether the checkout includes a company-name field, and whether it is required.
Possible enum valuesDISABLEDThe field is not shown or collected during checkout.
OPTIONALThe field is shown but a value is not required.
REQUIREDThe field is shown and a value must be provided.
- CheckoutFieldRequirement!
companyVatNumberRequirement Whether the checkout includes a company VAT-number field.
Possible enum valuesDISABLEDThe field is not shown or collected during checkout.
OPTIONALThe field is shown but a value is not required.
REQUIREDThe field is shown and a value must be provided.
- Media
favicon The variant media.
- Media
logo The logo.
- Boolean!
marketingConsent Whether the hosted checkout should display a marketing-consent checkbox.
- CheckoutNameRequirement!
nameRequirement Whether the checkout requires both first and last name, or only the last name.
Possible enum valuesFIRST_AND_LAST_NAMERequires both a first name and a last name.
LAST_NAME_ONLYRequires only a last name.
- String
redirectUri Optional storefront URL used when customers leave hosted checkout.
- CheckoutFieldRequirement!
shippingPhoneNumberRequirement Whether the checkout includes a shipping phone-number field, and whether it is required.
Possible enum valuesDISABLEDThe field is not shown or collected during checkout.
OPTIONALThe field is shown but a value is not required.
REQUIREDThe field is shown and a value must be provided.
- String!
token The token of the checkout session.
Queries
Retrieves the data required to display the hosted checkout page for a checkout session token.