Dynamic Integration

Usage

Select Custom HTML block in editor and insert the following snippet with your-token replaced by the token configured in https://admin.bilesuparadize.lv and desired-locale replaced with lv, en or ru:

<script>(function(bi,le,su,pa,ra,di,ze) {
(function load(e,n,t,a,c,o,i){if(!e[t]){e[t]={locale:i,token:o},e[t].changeLocale=function(n){e[t].locale=n,e[t]._changeLocale&&e[t]._changeLocale(n)},e[t].buyEventTickets=function(n){e[t]._buyEventTickets||(e.location.href=c+e[t].locale+"/event/"+n),e[t]._buyEventTickets(n)},e[t].getEvents=async function(){var e=await fetch(c+"/v1.0/embed/"+o+"/events.json");return await e.json()};var l=n.createElement(a);l.src=c+"/v1.0/embed/index.js";var s=n.getElementsByTagName(a)[0];s.parentNode.insertBefore(l,s)}}
)(window,document,'bilesuparadize','script','https://www.bilesuparadize.lv',bi,le)
})('your-token', 'desired-locale');</script>

Wherever ticket purchasing should be enabled, create a link or button with URI in the following format: bilesuparadize://buy-event-tickets/your-desired-event-id (e.g. bilesuparadize://buy-event-tickets/2324)

Example