// Before running this fiddle, you will need to pair your virtual terminal with the browser using this page:
// https://iclientsimulator.test.tyro.com/configuration.html
var apiKey = "Test API Key"; // API Key not validated test environments
const posProductInfo = {
posProductVendor: "Acme Co",
posProductName: "Acme Cloud POS",
posProductVersion: "1.0.0",
siteReference: "E.g. my customer ID or address"
};
var iclient = new TYRO.IClientWithUI(apiKey, posProductInfo);
console.log(iclient);
// The Tyro simulator uses 'magic' amounts. Refer to this page for more details:
// https://integrationsimulator.test.tyro.com/docs/
function showPosInfo() {
var PosVendor = iclient.posProductData.posProductVendor;
var PosProduct = iclient.posProductData.posProductName;
var PosVersion = iclient.posProductData.posProductVersion;
var result = "POS product vendor declared in iClient is " + "<b>" + PosVendor + "</b>" + "<br>" + "POS product name declared in iClient is " + "<b>" + PosProduct + "</b>" + "<br>" + "POS product version declared in iClient is " + "<b>" + PosVersion + "</b>";
document.getElementById("result").innerHTML=result;
}
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Fiddle Pages
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Get Fiddle Pages with PRO
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.