Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Quick Reference

An interactive documentation of currently supported widgets can be accessed throught the link below. It is possible, via the interface, to preview widgets, adjust parameters and obtain the configuration javascript code that can be copy/pasted in any website.

This interactive documentation is currently in an early alpha stage, and will be improved in the upcoming versions of SecuTix.




Warning

Please note that currently widgets are coupled to physical hosts of SecuTix. It is important to set the correct url for the source files to have widgets work properly. We are happy to help you setup the correct information. Please contact us via the email api-support@secutix.com. For more information, please refer to the section "Include the widget library".

...

  1. Include the widget library
  2. Create an html container with an id for every widget 
  3. Setup the widget through Javascript parameters
  4. Instantiate the widget

Prerequisites

To work, the widgets need to define the charset in the html header:


Code Block
languagexml
themeEclipse
titleExemple of container
<head>
<!-- meta character set UTF-8 -->
<meta charset="UTF-8">
[...]
</head>

Include the widget library

...

In the previous example, there are two groups of widgets. Widgets that are inside a group must share the same global definition (ie. : localhosthost, apiKey, language). For each set of global infoinformation, you have to create a new group by using the function start again as shown in the example.

Additionnal information

Domain restrictions 

It can be configured in the point of sales definition is possible to configure which domain can access the REST API through ajax calls. This prevents inserting widgets on domains that are not explicitly authorized. 

The following configuration screen is available to add domain restrictions