Make sure you have a docker
based runtime installed in your environment.
Download JRE 21 and select a procedure type from the completion suggestions:
-Create Target Directory
-Run the following command to create a directory for Java
-mkdir C:\Java\jre-21
- Extract JRE Files
- Right-click on the ZIP file, choose
Set JAVA_HOME
Run the following command to set the JAVA_HOME
environment variable
setx JAVA_HOME "C:\Java\jre-21" /M
- Copy JAR Files
-Run the following command to copy JAR files to the designated location
-Update PATH Variable to persist across restarts
-Verify Installation
-Open a new Command Prompt as an administrator and execute the command:
-
- Depending on the configuration type, set the environment variables if using ENVIRONMENT VARIABLE
or
- JSON_FILE
CONFIGURATION_TYPE= ENVIRONMENT_VARIABLE
Then, restart the command line and execute:
-java -jar qenta-sdk-server-1.0.0.jar
- CONFIGURATION_TYPE= JSON_FILE
Environment variable | +Description | +
---|---|
ENVIRONMENT_CONFIG_URL |
+ The URL where the SDK will take the configuration from | +
QENTA_ENVIRONMENT |
+ Qenta environment identifier. Allowed values: SANDBOX and PRODUCTION |
+
QENTA_USER_ID |
+ Unique identifier of the user | +
QENTA_ORGANIZATION_ID |
+ Unique identifier of the organization | +
QENTA_ACCESS_TOKEN |
+ Allow the SDK make request to the REST APIs | +
QENTA_PRIVATE_KEY |
+ Allows a client side signature of transactions | +
Download and Install Java
-install.bat
file and ensure that the DOWNLOAD_URL points to the correct Java version
- install.bat
file as an administrator by right-clicking and selecting Prepare the Server JAR:
-(e.g., qenta-sdk-server-1.0.0.jar)
and the corresponding
- JSON configuration file (e.g., configuration.json)
in the same directory as the batch files
- Configure Environment Variables
-Prepare the Server JAR:
-(e.g., qenta-sdk-server-1.0.0.jar)
and the corresponding
- JSON configuration file (e.g., configuration.json)
in the same directory as the batch files
- Configure Environment Variables
-CONFIGURATION_TYPE=ENVIRONMENT_VARIABLE
- Run the Server
-(qenta-sdk-server-1.0.0.jar)
and the JSON configuration file
-(configuration.json)
are in the same directory as the batch files.execute.bat
file as an administrator by right-clicking and selecting Pull the Docker image
-Execute the following command:
-docker pull public.ecr.aws/f5d3l7y2/qenta-sdk-server:<image_tag>\
- Use the following command to tag the image in Docker:
-docker tag public.ecr.aws/f5d3l7y2/qenta-sdk-server:<image_tag>\ qenta-sdk-server:latest
- Run the container:
-This curl command performs a POST request to the specified URL (http://localhost:8080/qenta-sdk/orders)
with a
-JSON
payload
Below is an example screenshot from a REST client showing a successful 200 OK HTTP response after executing the - curl command.
-SDK Settings
home screen you wil be able to see the followin
Private key
value.
-