Skip to main content

Using the LocalPosSystemApi Helper with an existing 1.2 CashBox

summary

After reading this guide, you'll be able to configure the LocalPosSystemApi Helper for use with an existing Middleware 1.2 CashBox by setting up a new Middleware 1.3 CashBox alongside it.

caution

For markets other than AT and FR, refer to the guide on setting up the Local PosSystem API Helper with the Launcher 2.0.

Introduction

This guide explains how to use the LocalPosSystemApi Helper with an existing Middleware 1.2 CashBox.

The LocalPosSystemApi Helper needs to run inside a Middleware 1.3 CashBox.

For this reason, you need to set up a second CashBox that contains only the LocalPosSystemApi Helper which is connecting to the queue running in the existing 1.2 CashBox.

tip

Packages starting with fiskaltrust.service and fiskaltrust.signing are part of the Middleware 1.2 stack, while packages starting with fiskaltrust.Middleware are part of the Middleware 1.3 stack.

The Middleware 1.2 supports only the AT and FR markets. For new CashBoxes in the AT market, the Middleware 1.3 is also supported and should be preferred.

The process consists of the following main steps:

  1. Prepare the 1.2 CashBox with a REST Helper (if it isn't already configured).
  2. Create and configure a new LocalPosSystemApi Helper.
  3. Create a new 1.3 CashBox and assign the LocalPosSystemApi Helper.

To locate your existing Middleware 1.2 CashBox, navigate to Configuration / CashBox in the fiskaltrust Portal.

existing-cashbox-1.png

StepsDescription
Number 1Navigate to Configuration / CashBox.
Number 2Use the search field to filter CashBoxes by name or ID to locate the existing one.
Number 3Identify the CashBox running Launcher 1.2 by checking the version displayed in the list.
Number 4Click the expand arrow to reveal the CashBox configuration inline.
Number 5Verify if a fiskaltrust.service.helper.rest is present. If it is present, you can skip the next step.

You can verify that the packages are running version 1.2, for example. The Queue will show a package such as fiskaltrust.service.sqlite in version 1.2.

Add a REST Helper to the 1.2 CashBox

info

You can skip this step if a REST Helper is already configured in the 1.2 CashBox.

To add the local REST Helper, navigate to Configuration / Helper in the fiskaltrust Portal and follow the steps below. The following images and steps are provided as examples.

createnewrestapifr.png

StepsDescription
Number 1Navigate to Configuration/ Helper to open the Helper configuration.
Number 2Click +Add to create a new Helper.
Number 3Add or edit a name for your Helper at Description.
Number 4Select fiskaltrust.service.helper.rest from the Package name drop-down list. Note that this selection cannot be changed later.
Number 5Select the latest Package version from the drop-down list.
Number 6Select one of the available outlets from the drop-down list.
Number 7Click Save to save your changes.

After the Helper has been saved, a success notification confirms that it has been created. The configuration window for the new Helper then opens automatically, allowing you to proceed with the configuration.

Configure the REST Helper

configureresthelper.png

StepsDescription
Number 1Click http (SOAP) to generate a URL that can be used to access the Helper. You can also rename the URL if desired.
Number 2Click Save to save your changes and return to Configuration / Helper.

Use the REST Helper in the 1.2 CashBox

assignhelpercashboxview.png

StepsDescription
Number 1Navigate to Configuration / CashBox and locate the 1.2 CashBox.
Number 2Click Edit to open the CashBox configuration.

selecthelper.png

StepsDescription
Number 3Scroll down to the Helpers section and locate the newly created REST Helper.
Number 4Activate the Helper by selecting its checkbox.

saveselecthelper.png

StepsDescription
Number 5Scroll back to the top of the page.
Number 6Click Save to save your changes.

Add a LocalPosSystemApi Helper

To add the LocalPosSystemApi Helper, navigate to Configuration / Helper in the fiskaltrust Portal and follow the steps below. The following images and steps are provided as examples. At this point, the Helper is created only as a standalone resource. It will be assigned to the new 1.3 CashBox later.

possystemapihelper1.png

StepsDescription
Number 1Navigate to Configuration/ Helper to open the Helper configuration.
Number 2Click +Add to create a new Helper.
Number 3Add or edit a name for your Helper at Description.
Number 4Select fiskaltrust.Middleware.Helper.LocalPosSystemApi from the Package name drop-down list. Note that this selection cannot be changed later.
Number 5Select the latest Package version from the drop-down list.
Number 6Select one of the available outlets from the drop-down list.
Number 7Click Save to save your changes.

After the Helper has been saved, a success notification confirms that it has been created. The configuration window for the new Helper then opens automatically, allowing you to proceed with the configuration.

Configure the LocalPosSystemApi Helper

These settings configure the Helper itself, before it is assigned to the new 1.3 CashBox, so that it points to the queue of the existing 1.2 CashBox.

addcustomconfig.png connect-helper-5.png

StepsDescription
Number 1Click http to generate a URL that the POS system can use to access the Helper. You can also rename the URL if desired.
Number 2In the configuration window, click Add custom configuration to reveal the Key and Value input fields.
Number 3Enter the parameters listed below, one at a time. Click the + button next to each row to add the next entry.
Number 4Click Save to your changes and return to Configuration/ Helper.
KeyValue
middlewareaccesstokenThe AccessToken of the existing 1.2 CashBox.
middlewarecashboxidThe CashBox ID of the existing 1.2 CashBox.
middlewareservicefolderC:/ProgramData/fiskaltrust (Optional. Required only if the service folder of the 1.2 CashBox has been changed from the default location. Set this value to the custom path so the Helper can locate the Middleware data.)

The LocalPosSystemApi Helper is now connected to the 1.2 CashBox.

Create a new 1.3 CashBox for the LocalPosSystemApi Helper

To create a new CashBox, navigate to Configuration / CashBox and follow the steps below.

new-cashbox-1.png

StepsDescription
Number 1Navigate to Configuration / CashBox.
Number 2Click Add to create a new CashBox.
Number 3Enter a description for the new CashBox.
Number 4Select the appropriate outlet.
Number 5Click Save to save the new CashBox.

After saving, click Edit by list to configure the components of the new CashBox. Note that for this setup, only the LocalPosSystemApi Helper is added to this CashBox. No Queue or SCU is required.

new-cashbox-2.png

StepsDescription
Number 1Scroll down to the Helpers section and locate the fiskaltrust.Middleware.Helper.LocalPosSystemApi Helper created above.
Number 2Activate the Helper by selecting its checkbox.
Number 3Click Save to save the CashBox configuration.

new-cashbox-3.png

At this point, you have two CashBoxes: the original 1.2 CashBox and the new 1.3 CashBox with the PosSystem API Helper assigned.

Download the Launcher for the 1.3 CashBox

The 1.3 CashBox requires Launcher 2.0. To download it, navigate to Configuration / CashBox.

download-launcher-12.png

StepsDescription
Number 1Locate the 1.3 CashBox and click Rebuild configuration. Wait for the success confirmation.
Number 2Click Download and select the correct Version 2 Launcher architecture for your system.

Run the Launcher for the 1.3 CashBox

After downloading the Launcher package, extract it and run launcher-test.cmd (or launcher-test.sh on Unix-based systems) to start the Middleware. For detailed instructions on starting the Launcher and installing it as a service, see Launcher 2.0 Getting Started.

Download the Launcher for the 1.2 CashBox

The 1.2 CashBox supports Launcher version 1. To download it, locate the existing 1.2 CashBox in the Configuration / CashBox view.

StepsDescription
Number 1Click Rebuild configuration and wait for the success confirmation.
Number 2Click Download and select the appropriate Launcher 1.2 or Launcher 1.3 architecture for your system.

Run the Launcher for the 1.2 CashBox

Extract the downloaded package and run test.cmd (or test.sh on Unix-based systems) to start the Middleware. For detailed instructions on starting the Launcher and installing it as a service, see Launcher for Windows, Linux & macOS.

Find the Helper URL

To find the Helper URL used to send requests, navigate to Configuration / CashBox.

helper-url-1.png

StepsDescription
Number 1Locate the 1.3 CashBox and click the expand arrow to reveal the CashBox configuration inline.
Number 2The Helper URL is displayed below the PosSystem API Helper entry. Use this URL to send requests to the Middleware.

Test the LocalPosSystemApi Helper

Once the Middleware is running, verify that the LocalPosSystemApi Helper is working correctly by sending a test request. The easiest way to do this is by using the fiskaltrust Developer Portal, which provides an interactive interface for sending requests to the Middleware and inspecting the responses.

fiskaltrustfordevpage.png

Select POS System API from the available options.

fiskaltrustfordev_selectmarket.png

Select your market, then click Settings in the top-right corner.

settings_fr.png

A settings panel opens where you can configure the connection to the local Middleware.

fiskaltrustfordev_setsettings_fr.png

StepsDescription
Number 1In the Environment section, select Local Middleware.
Number 2In the Middleware Endpoint field, enter the Helper URL from the 1.3 CashBox found in the previous step.
Number 3Copy the PIN from the Configuration / CashBox page, enter it in the field below, then click Pair. A confirmation message should appear as shown below.

pairedpin.png

StepsDescription
Number 4The CashBox ID and Access Token fields are populated with the values from the existing 1.2 CashBox.
Number 5Click Test Connection. A green 201 response confirms that the Helper is working correctly.

Close Settings. You can now use the available endpoints to send requests to the Middleware and verify the Helper functionality.