Skip to main content

DefaultGuestCheckoutStrategy

The default implementation of the GuestCheckoutStrategy. This strategy allows guest checkouts by default, but can be configured to disallow them.

Example

Ts
Signature

init

method(injector: Injector) =>

constructor

method(options?: DefaultGuestCheckoutStrategyOptions) => DefaultGuestCheckoutStrategy

setCustomerForOrder

method(ctx: RequestContext, order: Order, input: CreateCustomerInput) => Promise<ErrorResultUnion<SetCustomerForOrderResult, Customer>>

Options available for the DefaultGuestCheckoutStrategy.

Signature

allowGuestCheckouts

propertyboolean
Default:true

Whether to allow guest checkouts.

allowGuestCheckoutForRegisteredCustomers

propertyboolean
Default:false

Whether to allow guest checkouts for customers who already have an account. Note that when this is enabled, the details provided in the CreateCustomerInput will overwrite the existing customer details of the registered customer.

Was this chapter helpful?
Report Issue
Edited Feb 25, 2026ยทEdit this page