gamexo developers
Leo Cal

Leo Cal

Put "Book a court" on your own website. Customers pick a slot and pay through your own payment gateway, and the booking lands on your dashboard already paid.

Leo Cal is the booking widget for a venue's own website. A visitor picks a sport, a court, a day and a time, pays online, and the booking appears on your dashboard and your counter board as paid — with no one at the venue touching it.

It is one <script> tag. It works on plain HTML, WordPress, React, Wix, Webflow or anything else that lets you paste a snippet.

What your customer sees

  1. Pick. Sport, court, day, length and a start time. Only free slots are offered, each priced in rupees with GST included. Peak hours are marked and priced at your peak rate.
  2. Details. Name and phone number (email is optional but is how the confirmation reaches them).
  3. Pay. The payment window of your gateway opens. Your customer pays you directly; Leo Cal never holds the money.
  4. Done. A confirmation with the booking reference. Your site is told about it, so you can fire an analytics event or show a thank-you message.

The widget is drawn in your venue's brand: your logo, and your accent colour on the Confirm & Pay button. Everything else keeps Leo Cal's own neutral look, so it reads cleanly whatever your site's colours are.

Two shapes, usable together

ShapeWhat it isUse it for
CardThe booking form drawn on the page, as tall as its content and as wide as the div you put it in.A hero section, a sidebar, a "Book now" strip.
Pop-upA booking window that opens over the page when a button is clicked. On a phone it fills the screen.Header and footer buttons, menu items, anywhere a card does not fit.

Choosing a slot on a card hands over to the pop-up for the customer's details and the payment, because a payment window needs more room than a 380px card has.

How it works

 your website                  Leo Cal                       your gateway
 ────────────                  ───────                       ────────────
 <script embed.js>  ───────▶   booking page (in an iframe,
                               on cal.turfleo.com)
                                    │  1. reads your venue, courts, rules
                                    │  2. shows free slots and prices
                                    │
                    customer picks a slot and enters details
                                    │
                                    ├─ 3. holds the court for 15 minutes
                                    ├─ 4. prices it from YOUR rates
                                    └─ 5. creates an order ──────────▶  Razorpay
                                                                          │
                    customer pays in the gateway's own window  ◀──────────┤
                                    │                                     │
                                    ├─ 6. verifies the signed result  ◀───┤  (and the webhook,
                                    └─ 7. confirms the booking             │   as a backstop)
                                                                          │
 leo-cal:booked event  ◀────────────  booking is paid on your dashboard

Three things about this design are worth knowing:

  • The widget runs in an iframe on our domain. Your site's CSS and scripts cannot reach it, and the payment runs on cal.turfleo.com, not on your page. The loader script only draws the frame, the backdrop and the button wiring around it.
  • The browser never decides a price or says "I've paid". It asks us to start a checkout; we price the slot from your own rates and hold the court. A booking is confirmed only when your gateway proves the payment. See Payments.
  • It follows your venue's own rules. Booking lengths, how far ahead people can book and peak pricing come from Settings → Booking rules. See Booking rules.

What you need

  • A Razorpay account connected under Settings → Integrations, with Collect online turned on. Razorpay is the only gateway Leo Cal can take a payment with today. Without one the widget tells customers to call the venue instead of taking money.
  • A browser key (it starts with gxp_), listing every website address the widget will appear on.
  • Courts, sports and prices set up on the dashboard. Leo Cal reads them live, so changing a price or adding a court needs no change to your website.

One widget, every branch

A venue with several branches gets one widget that offers all of them. Pass data-branch to open on one, or to give each branch's page its own widget. See Embedding.

Other ways in

  • A booking link. The same key works as a standalone page you can share on Instagram or WhatsApp: https://cal.turfleo.com/?key=gxp_…
  • Your own front end. If you would rather build the booking screens yourself, the widget is a thin client of four documented calls. See Building your own.

On this page