Search...
getCheckoutOptions( )
Retrieves checkout details.
Syntax
function getCheckoutOptions(): Promise<GetCheckoutOptionsResponse>
getCheckoutOptions Parameters
This function does not take any parameters.
Returns
Return Type:
Promise<
GetCheckoutOptionsResponse
>NAME
TYPE
DESCRIPTION
acceptCoupons
boolean
Whether coupons are accepted at checkout.
paidTickets
boolean
Whether there are any paid tickets available for sale.
paymentMethodConfigured
boolean
Whether any payment method is configured and available for payment.
premiumServices
boolean
Whether premium services are enabled. Enabled for free if site does not sell any paid tickets. Selling tickets for a fee requires a premium feature "events_sell_tickets".
Was this helpful?
getCheckoutOptions example
Copy Code
1import { orders } from 'wix-events.v2';23 async function getCheckoutOptions() {4 try {5 const result = await orders.getCheckoutOptions();67 return result;8 } catch (error) {9 console.error(error);10 // Handle the error11 }12 }13