Events Settings API: Sample Flows

This article presents possible use cases and corresponding sample flows that you can support. This can be a helpful starting point as you plan your implementation.

Handle premium feature upgrades

Show appropriate UI elements in a custom checkout when a Wix user upgrades their subscription to enable paid ticket sales. This flow helps to respond to changes in premium features that affect ticketing and checkout behavior.

To handle premium feature changes:

  1. Call Get Events Settings with specific field categories to get initial settings.
  2. Store the initial siteInfo.premiumFeatures array in your database for comparison.
  3. Listen for Events Settings Updated webhook to receive notifications when settings change.
  4. When you receive an update notification, compare the new siteInfo.premiumFeatures array with your previously stored values to identify changes.
  5. If the SELL_TICKETS feature is added to premium features:
    1. Check paymentSettings.activePaymentMethods for available payment options.
    2. Verify paymentSettings.ticketSalesEnabled is true.
    3. Update your checkout UI to display payment method options.
  6. Store the updated premium features list for future comparisons.
Did this help?