Booking Engine Guide
  • Mews Booking Engine Guide
  • Booking Engine Standalone
    • Getting started
    • Deeplinks
  • Booking Engine Widget
    • Getting started
    • Use cases
      • Prerequisites
      • Testing in the Demo environment
      • Using your own Date inputs
      • Multiple enterprises and pre-selected locations
      • Disabling widget caching
    • Advanced guide
    • Reference
    • Troubleshooting
  • Booking Engine API
    • Usage guidelines
      • Authentication
      • Requests
      • Responses
      • Environments
      • Images
      • Supported currency codes
      • Supported language codes
    • Use cases
      • Availability blocks
      • On session payments
      • Payment card authorization
      • Supporting payment cards
    • API Operations
      • Availability blocks
      • Configuration
      • Hotels
      • Payment cards
      • Reservations
      • Reservation groups
      • Services
      • Vouchers
    • Deprecations
  • Integrations
    • Google Tag Manager
    • Google Triggers Reference
    • Google Tag Manager Configuration
    • Google Analytics cross-domain tracking
  • FAQ
    • Ways to integrate
    • Migration off the mews.li domain
  • Changelog
    • Changelog 2024
    • Changelog 2023
    • Changelog 2022
    • Changelog 2021
    • Changelog 2020
Powered by GitBook
On this page

Was this helpful?

  1. Booking Engine Widget
  2. Use cases

Testing in the Demo environment

PreviousPrerequisitesNextUsing your own Date inputs

Last updated 2 years ago

Was this helpful?

The Booking Engine Widget uses the Production environment by default. Before you are ready to run the Booking Engine Widget against real data, you should use the Booking Engine Widget with data instead. Most of the steps are the same as those described in the section. The only difference is in .

In comparison to the default example, you can set an optional property to point to the Demo environment:

Mews.Distributor(
    { configurationIds: ['aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee'] },
    function (api) {
        api.open();
    },
    { dataBaseUrl: 'https://api.mews-demo.com' }
);

Important: Make sure you use Configuration IDs from the correct environment, otherwise they will not be used - see .

After making this change, the Booking Engine Widget will start using data from the instead of from the .

Demo environment
Getting started
dataBaseUrl
Why doesn't the Booking Engine use the Configuration IDs I've provided?
Step 2: Initialize Booking Engine Widget
Demo environment
Production environment