1. Support Hub
  2. My Website & Social Media

Integrating Gift Cards Into Your Website

This article will instruct the user on methods to integrate their gift card service into their website either natively or through a redirect.

There are 2 main ways you can integrate gift cards into your website. These include:

1. A Button which will redirect the user to the gift card landing page

2. An iframe widget (this is essentially a website hosted within a website) which will keep the user on your website and allow check out to be done without leaving the site.

When using either method, the first important aspect to consider is the custom URL link for the gift card merchant page. Without this link, the gift card widget may not be properly displayed on your website or might not correctly redirect to the merchant's gift card app.

Below are the step-by-step instructions to obtain a URL link for a gift card to use on your website:

Step 1

Step 2

  • Hover over the settings and click on "Company Details."

Screenshot 2023-09-05 132635

Step 3

  • Copy the URL link for your custom gift card. N.B the number at the end of the URL is unique to your business so this must be copied to work.

Now we have the custom URL we can look to add this to our website.

Using the custom gift card URL

Depending on your circumstances with website creation/management, it would be a good idea to communicate to your website manager the below instructions:

Option 1: Utilizing href to Redirect to an External Website

The href attribute is commonly used in HTML to create links to external websites and can be added to buttons, text or other HTML elements. Here's how to use it:

  1. Open your HTML file in a code editor

  2. Add the following code to create a link that directs to an external website 

       <a href="https://gift.loylap.com/XXXX" target="_blank">BUY VOUCHERS</a>
     
  3. Replace https://gift.loylap.com/XXXX with the actual custom gift card URL you want to link to. You can also customize the link text between the tags.

  4. Save the HTML file and open it in a web browser. When you click the link, it should take you to the external website..

Option 2: Embedding an <iframe>

An <iframe> allows you to embed content from another website within your own webpage. Here's how you can do it. If you use wordpress please skip to the below section. If you currently use a website provider such as WIX, GoDaddy, Squarespace e.t.c you may need to refer to their documentation on adding custom code to a page. Here are some resources to help with each of the mentioned platforms:

WIX: Embedding Custom Code On Your Site
GoDaddy: Add HTML or custom code to my site
Squarespace: Adding custom code to your site

  • Solution 1:

  1. Open your HTML file in a code editor

  2. Add the following code where you want the <iframe> to appear:

      <iframe src="https://gift.loylap.com/XXXX" width="100%" height="1250px" frameborder="0"></iframe>
     
  3. Replace https://gift.loylap.com/XXXX with your custom gift card URL from your business portal. Optionally, adjust the width and height attributes to set the dimensions of the embedded frame.

  4. Save the HTML file and open it in a web browser. You should see the content of the external website embedded within your page.

  • Wordpress Solution:

  1. Log in to Your WordPress Dashboard

  2. Create or Edit a Post/Page:

  3. Switch to HTML or Text Editor

  4. Add the following code in the spot where you want the <iframe> to appear:

      <iframe src="https://gift.loylap.com/101" width="100%" height="1250px" frameborder="0"></iframe>
     
  5. Replace https://gift.loylap.com/101 with the actual custom gift card URL of the website you want to embed. Adjust the width and height attributes to set the dimensions of the embedded frame.

Note: Remember to replace the URLs and dimensions in the code snippets with your actual requirements. Additionally, make sure to use proper HTML syntax and formatting to ensure your website functions correctly and looks appealing

Here is an example of an embedded gift card website. Click here to view the site.

Screenshot 2023-09-05 133643