Gets the valid checkout options for a service's slot.
To understand how getCheckoutOptions()
is used in a typical booking lifecycle,
see Typical Booking Lifecycle (SDK | Velo).
The specified checkoutOptionOptions
object contains the slot ID for the service. Typically, you retrieve the slot ID with the getServiceAvailability() (SDK | Velo)
method.
getCheckoutOptions()
returns the options available for the specified user. For example, if the customer has not
purchased any pricing plans, pricing plans are not returned even if there are pricing plans associated with the service.
An object containing the information needed to identify the service for which to list the possible checkout options. Currently, you can request the checkout options using the ID of a slot.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.