- Import the SDK package into your project
- Create and configure a VMC settings object
- Set up the serial (COM) port for communication
- Register event listeners and start the SDK
Prerequisites
Before you begin, make sure you have:- Downloaded the appropriate SDK files,
.jarfor Java or.dllfor C#. - Identified the correct COM port for the Marshall cable.
- For Java- ensure that you have Java 8 (also known as Java 1.8) and above. Note that for the newest version of Nayax’s Java SDK (0.1.6.8) you’d need Java 11- but should you like us to, we can look into having it be compiled with Java 8.
Integrate Marshall
To perform the integration, follow the steps below:-
Import the provided.
.JARor SDK DLL file into your project. -
Import the necessary namespaces in your code.
-
Instantiate a VMC configuration object:
-
Fill in the appropriate fields. The following code block presents a standard configuration:
-
Setup the COM port.
-
Note- in the near future we plan on having the possibility to use Marshall over ETH (supported only for VPOSM)- in that case, the would be no COM port but rather an IP address which would be under the same local network as the Nayax device, and optionally the relevant IP port (which by default should remain untouched [has by default the value of “12345” which is meaningless])
- Configure the SDK and register to link events.
- Start the SDK and wait for the
onReady()event:
Using AndroidOn android, you either need support from your provider or use a FTDI chip, which we provide
port implementation for. (see the “android” folder in the JAVA SDK release)