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

Figure 1. Locating the existing Middleware 1.2 CashBox in the fiskaltrust Portal.

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.

Table 1. Steps to locate the existing 1.2 CashBox and check for a REST Helper.

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

Figure 2. Creating a new REST Helper in the fiskaltrust Portal.

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.

Table 2. Steps to create a new REST Helper.

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

Figure 3. Configuring the REST Helper and generating its URL.

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.

Table 3. Steps to configure the REST Helper.

Use the REST Helper in the 1.2 CashBox

assignhelpercashboxview.png

Figure 4. Opening the 1.2 CashBox configuration to assign the REST Helper.

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

Table 4. Steps to open the 1.2 CashBox configuration.

selecthelper.png

Figure 5. Selecting the newly created REST Helper in the CashBox configuration.

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

Table 5. Steps to activate the REST Helper in the 1.2 CashBox.

saveselecthelper.png

Figure 6. Saving the CashBox configuration with the REST Helper enabled.

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

Table 6. Steps to save the CashBox configuration.

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

Figure 7. Creating a new LocalPosSystemApi Helper in the fiskaltrust Portal.

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.

Table 7. Steps to create the LocalPosSystemApi Helper.

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

Figure 8. Adding custom configuration to the LocalPosSystemApi Helper.

connect-helper-5.png

Figure 9. Custom configuration fields connecting the Helper to the 1.2 CashBox queue.

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.

Table 8. Steps to configure the LocalPosSystemApi 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.)

Table 9. Custom configuration parameters that point the Helper to the 1.2 CashBox.

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

Figure 10. Creating a new 1.3 CashBox in the fiskaltrust Portal.

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.

Table 10. Steps to create the new 1.3 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

Figure 11. Assigning the LocalPosSystemApi Helper to the new 1.3 CashBox.

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.

Table 11. Steps to assign the Helper to the 1.3 CashBox.

new-cashbox-3.png

Figure 12. The two CashBoxes: the original 1.2 CashBox and the new 1.3 CashBox.

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

Figure 13. Rebuilding the configuration and downloading the Launcher for the 1.3 CashBox.

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.

Table 12. Steps to download the Launcher for the 1.3 CashBox.

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.

Table 13. Steps to download the Launcher for the 1.2 CashBox.

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

Figure 14. Finding the Helper URL in the 1.3 CashBox configuration.

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.

Table 14. Steps to find the Helper URL.

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

Figure 15. The fiskaltrust Developer Portal landing page.

Select POS System API from the available options.

fiskaltrustfordev_selectmarket.png

Figure 16. Selecting the market in the Developer Portal.

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

settings_fr.png

Figure 17. Opening the Settings panel in the Developer Portal.

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

fiskaltrustfordev_setsettings_fr.png

Figure 18. Configuring the connection to the local Middleware.

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.

Table 15. Steps to configure the local Middleware connection and pair the CashBox.

pairedpin.png

Figure 19. Confirmation that the CashBox ID and Access Token are populated after pairing.

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.

Table 16. Steps to verify the Helper connection with a test request.

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