EgyptLimo

Booking Widget

Add EgyptLimo search and secure checkout to an approved website.

The Booking Widget is the fastest way to add EgyptLimo booking to a partner website. The visitor searches inside the embedded form, then continues to secure vehicle selection and payment on booking.egyptlimo.com.

The booking experience

The widget is responsive by default: a single horizontal search bar on desktop and a focused, step-by-step form on mobile. It supports one-way and roundtrip journeys, pickup and drop-off search, date/time selection, passenger count, and the EgyptLimo attribution footer.

EgyptLimo Booking Widget on desktop showing trip type, locations, date, time, passengers, and search button
Desktop: a compact search experience that fits naturally into a landing-page hero or booking section.
EgyptLimo Booking Widget on mobile showing a stacked responsive booking form
Mobile: the same journey reorganised for touch and smaller screens.

1. Approve your domain

EgyptLimo Admin first enables the independent Retailer Widget service in the partner’s Services configuration, then links a retailer site to that partner in Admin → Retailer booking widgets. There the admin controls activation, exact allowed origins, branding, private locations and the commission plan. A linked site is unavailable when either the site or the partner’s Widget service is disabled; existing widget sessions also stop resolving after access is removed.

The partner sees a read-only Retailer Widget analytics page in their dashboard when the service is enabled. It shows assigned sites, booking activity, confirmed booking value grouped by currency, and commission records by status and currency. This is separate from API client credentials and does not expose secrets in the browser.

Send the exact HTTPS origins to your EgyptLimo partner contact:

https://partner.example.com
https://www.partner.example.com

Origins must match exactly. The protocol and subdomain matter, so www and non-www must be approved separately. Localhost, a page path, wildcards, API keys, and tokens are not valid origins.

2. Add the widget

Paste this where the form should appear:

<div id="egyptlimo-booking"></div>
<script
  src="https://booking.egyptlimo.com/widget.js"
  data-target="egyptlimo-booking"
  data-language="en"
  defer
></script>

The script creates and sizes its own iframe. Do not create a manual iframe, add a sandbox attribute, or place tokens in the page.

Appearance modes

The default surface is transparent, designed to sit over a partner hero or coloured section. For a standard light page section, add data-surface="light".

<div id="airport-transfer-booking"></div>
<script
  src="https://booking.egyptlimo.com/widget.js"
  data-target="airport-transfer-booking"
  data-language="en"
  data-pickup="Cairo International Airport"
  data-surface="light"
  defer
></script>

Supported attributes

AttributePurpose
data-targetID of the empty element that receives the widget.
data-languageInitial interface language, such as en.
data-pickupOptional pickup text. The traveller still selects a valid suggestion.
data-surfacetransparent (default) or light.
data-sourceOptional partner attribution value for your implementation. It is not a security control.
  1. The traveller selects pickup, drop-off, date, time, and passengers.
  2. EgyptLimo validates the route and gets a fresh current price.
  3. The browser continues to vehicle selection on booking.egyptlimo.com.
  4. Payment and confirmation happen on the secure EgyptLimo domain.

Privacy-safe browser events

The loader emits egyptlimo:booking on the host page. It accepts messages only from the iframe it created at the expected booking origin, discards unknown message types, bounds resize heights, and forwards only known, non-customer fields. Do not use these events as proof of a confirmed or paid trip; reconcile bookings through the Partner API or Portal.

window.addEventListener('egyptlimo:booking', ({ detail }) => {
  if (detail.type === 'egyptlimo:booking:search_submitted') {
    analytics.track('transfer_search_submitted', {
      source: detail.source,
      transfer_type: detail.transfer_type,
      passengers: detail.passengers,
    });
  }
});
Event typeMeaningSafe fields
egyptlimo:booking:loadedApproved embed renderedsource, retailer
egyptlimo:booking:search_submittedSearch form submittedsource, transfer_type, passengers
egyptlimo:booking:checkout_openedSecure handoff begansource, transfer_type, passengers

checkout_opened is not booking.confirmed. No location, customer, booking ID, price, or payment data is forwarded. data-source is attribution only, capped at 80 characters; never put personal information in it.

Embedding and security boundaries

  • Use the official script on each exactly approved HTTPS origin. The iframe is created by the loader; do not add your own iframe or sandbox attribute.
  • The booking page's frame policy and origin verification govern embedding. A browser-side data-source, parent_origin, logo, or color cannot grant access.
  • The loader never needs an API token or HMAC secret. Keep Partner API credentials server-side, separate from Widget installation.
  • The customer completes selection and payment on EgyptLimo's hosted domain. Browser funnel events are advisory; server-side booking state is authoritative.

Test checklist

  • Test on the approved public origin, not a local or preview URL.
  • Choose both locations from the suggestion list.
  • Verify that vehicle selection opens with live prices.
  • Test desktop, mobile, and your consent/banner tooling.
  • Confirm your host listener sees loaded, search_submitted, and checkout_opened without customer data; test a failed/expired journey as well.

If the widget area is blank or the browser says it refused to connect, the origin has not been approved or is not included in the widget security policy.

On this page