Skip to main content

How to add Fanbase checkout to your club website?

You can let supporters buy tickets, book hospitality and purchase memberships directly from your club website using Fanbase Website Embed.

When a fan clicks a Buy Tickets or Join link, Fanbase checkout opens in a popup over your website, allowing them to complete their purchase without navigating to a separate page.

This guide explains how to enable Website Embed and how to add it to your website.

What can you use Website Embed for?

  • Match and event tickets

  • Hospitality bookings

  • Memberships

  • Away tickets

Before you start

There are two things you need to do in Fanbase before the embed will work:

  1. Enable Website Embed for your club.

  2. Add your website domain to your club's links.

You'll also need access to your club's website to add the relevant code. We recommend sharing the implementation sections of this guide with whoever manages your website.

Important: Your website must use HTTPS, and the domain must be registered in Fanbase. Otherwise, the checkout popup won't open.

Step 1: Enable Website Embed

  1. Log in to your Fanbase Club Portal.

  2. Go to Club Settings.

  3. Select Ticketing.

  4. Open Website Embed.

  5. Switch the feature on.

Once enabled, you'll see the Get website embed code option when sharing a fixture, event or membership.

Step 2: Add your website domain

You must add your website to your club's links so Fanbase knows which websites are authorised to display your checkout.

  1. Go to Club Settings.

  2. Select Links.

  3. Add your website using either:

    • Website – for your club's main website.

    • Website embed host – if you sell tickets through a separate website or ticketing platform.

  4. Save your changes.

Top tip: If your club uses multiple websites, such as a main website, streaming site, Shopify store or separate ticketing platform, make sure you add each relevant website.

Your website must use HTTPS. Once a domain has been added or updated, allow up to five minutes for the change to take effect.

Step 3: Get your website embed code

You can get the code directly from the fixture, event or membership you want to promote.

  1. Open the relevant fixture, event or membership in your Club Portal.

  2. Select Share.

  3. Choose Get website embed code.

  4. You'll see two implementation options:

    • Option A – Fanbase script (recommended)

    • Option B – HTML only

    • Option C: Standard checkout link

Both options allow supporters to open Fanbase checkout in a popup on your website.

Option A: Fanbase script (recommended)

This is the recommended setup and is suitable for most websites.

Your website developer will need to:

  1. Copy the script snippet provided by Fanbase.

  2. Add the script to your website header, or just before the closing </body> tag.

  3. Copy the embed link provided for your fixture, event or membership.

  4. Add the link to your website's Buy Tickets or Join button.

The script only needs to be added once per page. You can then use the relevant embed links for multiple fixtures, events or memberships.

Important: Make sure your website link includes the data-fanbase-checkout attribute. Without this attribute, the script won't recognise the link and the popup won't open.

The script also means that links added to your website later can use the same checkout popup without needing to add the script again.

What happens when a fan clicks the link?

  • Fanbase checkout opens in a popup over your website.

  • Fans can log in, create an account or continue as a guest.

  • They complete the usual Fanbase checkout process.

  • Once they close the popup after purchasing, a confirmation message appears on your website.

If the script cannot load, the link will still open checkout in a new tab.

Option B: HTML only

If your website cannot support the Fanbase script, you can use the HTML-only option instead.

This option uses HTML and CSS to display the checkout in a popup. Your website developer will need to:

  1. Copy the HTML and CSS code provided.

  2. Add the styling code to your website page.

  3. Add the relevant button and checkout code to the page.

  4. Make sure each popup has a unique ID.

Important: This option requires a recent browser. It is supported on Chrome 135, Firefox 144 and Safari 26.2 onwards. On older browsers, the button may not work, so we recommend adding a standard checkout link nearby as a backup.

There are also some differences compared with the script option:

  • The popup cannot display the purchase confirmation message on your website.

  • Fans close the popup using the close button or Escape.

  • Fans may remain signed in to checkout after closing the popup.

  • This option is best suited to pages with one or a small number of fixtures.

Your website developer should use the HTML code provided by Fanbase and keep the payment permissions in the iframe code unchanged.

Option C: Standard checkout link

If you don't want to use a popup, you can still add a standard Fanbase checkout link to your website.

This opens checkout in a new browser tab rather than displaying it over your website.

This option works across browsers and can be used as a backup if the embed isn't supported.

Adding away tickets

You can also display away tickets on your club website using Website Embed.

This is currently supported when both clubs use Fanbase.

To set this up:

  1. Your club must have Website Embed enabled and your website added under Club Settings → Links.

  2. The home club must publish the away tickets for your supporters.

  3. Ask the home club to provide your website embed link and code from its away ticket publishing window.

  4. Add the code to your website in the same way as a standard fixture embed.

The away ticket link uses your club's link and the home club's fixture ID. This means the checkout opens in your club's colours and takes supporters directly to the Away tab.

Important: Please also be aware that Apple Pay may not be available when purchasing away tickets through the embed, as the payment is processed by the home club. Card payments are available.

What will supporters see?

Once everything is set up correctly:

  1. A supporter clicks Buy Tickets or Join on your website.

  2. Fanbase checkout opens in a popup without taking them away from your website.

  3. They select their tickets or membership.

  4. They log in, create an account or continue as a guest.

  5. They complete the normal Fanbase checkout process.

If tickets or memberships aren't available for purchase, supporters will see a message explaining that checkout is unavailable.

If the popup cannot load, supporters will be given the option to Open checkout in a new tab.

Payment methods and browser compatibility

There are a few things to be aware of when supporters use the embedded checkout:

  • Card payments: Available through the embed.

  • Apple Pay: Available in the embed on Safari 17 and later, provided the relevant website address has been registered by Fanbase. If you add another website or subdomain, it may need to be registered separately for Apple Pay.

  • Google Pay and Link: These are not expected to work in the embed because browsers only allow them when checkout is hosted on the same address as the website. Supporters can use the standard new-tab checkout link instead.

  • Browser support: The embed works on current versions of Chrome, Edge, Firefox and Safari. Some older Safari versions or strict privacy settings may prevent the checkout cookies from working inside the popup. In these cases, checkout will open in a new tab instead.

The first time a supporter opens the checkout on your website, it may take a few seconds to load. Subsequent visits should be quicker.

Troubleshooting

If the checkout popup isn't working, check the following:

  • The checkout says it isn't enabled on this website yet.

    • Make sure Website Embed is switched on under Club Settings → Ticketing → Website Embed.

    • Check that your website has been added under Club Settings → Links and uses HTTPS.

  • You can't see the Get website embed code option.

    • Check that Website Embed has been enabled under Club Settings → Ticketing → Website Embed.

  • The popup doesn't appear when a supporter clicks the button.

    • Make sure the Fanbase script has been added to your website.

    • Check that your link includes the data-fanbase-checkout attribute.

  • The checkout opens in a new tab instead of a popup.

    • Check that the Fanbase script has loaded correctly.

    • Your website's security settings may be blocking the script, or the browser may not support the embed.

  • The popup is blank or says checkout can't be shown on this page.

    • Make sure your website domain has been registered in Fanbase.

    • Check that the checkout link is correct and your website's security settings allow the checkout to load.

  • The checkout says it is unavailable.

    • Check that the club link in the checkout URL is correct.

    • Try copying the link again from your Club Portal.

Please contact the Fanbase Support Team and include your website address and the page where you're trying to use the embed.

Did this answer your question?