Ingenico - Linux
Ingenico - Linux
In this configuration, your Ingenico device communicates with your Linux host machine through the Payroc Cloud middleware. To ensure your POS can communicate with your Ingenico device, you need to configure your Linux host machine.
Integration steps
- Prepare your host machine for configuration.
- Configure the native libraries.
- Configure the payconfig.xml file.
- Run the middleware.
Before you begin
Your host machine must have Java 8 or later installed.
Step 1. Prepare your host machine for configuration
To download the Payroc Cloud middleware and connect your payment device to your host machine, complete the following steps:
- Connect your payment device to a USB port on your host machine.
- Go to our Github repository, and then download Payroc Cloud middleware from the release files.
- If your host machine has Java 8 up to Java 16 installed, download version 1.6.76.
- If your host machine has Java 17 or later installed, download version 1.6.78+.
- Extract the files from the zipped folder.
Step 2. Configure native libraries
You need to copy the libraries that match your operating system into the middleware root folder so the middleware can load them when it starts. To do this, complete the following steps:
- Open the folder that you extracted the Payroc Cloud middleware to.
- Go to the folder that contains the library that you want to use, for example, to use 64-bit Linux with Ingenico, go to libs > ingenico > nativeLibsLinux > 64_bit.
- Copy the contents of the folder into the root folder.
- Create a new file in /etc/udev/rules.d and name it
usb.rules. - Add the following contents to the file:
SUBSYSTEM==\"usb\", MODE=\"0666\".
Step 3. Configure the payconfig.xml file
The payconfig.xml file defines how the middleware communicates with your Ingenico device and our gateway, including:
- Which Payroc account and integration you are working with, for example, you send your API key to authenticate your requests.
- Which payment device the middleware is communicating with, for example, you send the value for the port that your Ingenico device is connected to on your host machine.
- How your Ingenico device should behave in transactions, for example, you indicate if the device should accept keyed transaction details.
Use the following values to configure your payconfig.xml file:
Step 4. Run the middleware
To run the middleware, complete the following steps:
-
Run the following command to make the start.sh file executable:
$chmod +x start-ingenico.sh -
Run the following script to start the middleware:
$ ./start-ingenico.sh
This establishes communication between your host machine, your Ingenico device, and our gateway.
After the middleware starts, the logs display the serial number of your Ingenico device. You need this serial number to send transaction requests so the gateway can route the instructions to the correct device.
Next steps
To program your POS to send instructions to your Ingenico device, go to Run a sale.