SDK to integrate Ezetap Device on windows platform for Browser(JavaScript)/REST.
#Architecture There are 3 components involved :-
- Client(Browser)
- Server(NodeJS)
- Driver(Ezetap Device)
Ezetap Server (NodeJS) hosts a bunch of REST APIs to communicate with the Ezetap device, these REST APIs can be used directly or through JS APIs.
- Download
Server.zipandEzeAPI.jsfrom the release section. - Ezetap app key (Demo/Prod keys)
- Windows compatible Ezetap Device
##Prerequisites
-
Download Node Server from Releases folder (node_server->node-v4.4.0-x64.msi), Double click and follow the instructions to install.
-
After node Installation, open script folder and Double click on install.bat.
##Server Setup
First start the server, to start Ezetap server unzip server.zip and double click on Ezetap.exe. This will start up a cli interface.
By default, Ezetap Server runs on 8081 port http://localhost:8081, it also makes use of WebSockets to push Notifications from Device, by default websocket pushes to 1337 port. Both these ports are configurable.
###JSON Configuration To configure Ezetap Server port and Websocket port. Go to config folder inside server folder and change the default configuration.
{
"httpPort":"8081",
"wsPort":"1337"
}
Note:- If you change the ports on server side, make sure you use the same ports on client side as well.
#Usage There are two ways to integrate Ezetap device with your solution to start taking payments. ##Javascript Usage
You can include EzeAPI.js in your project and start calling the APIs. For EzeAPI Docs, please refer to API Docs Section
Note:- EzeAPI.js is dependent on Jquery, so dont forget to include jquery in your project.
##REST
You can also call REST services directly from your project. For REST ,please refer to REST API Docs
##Sample Web Application There is a sample Web application inside the sample folder of the repository. You can use this project as a reference to integrate Ezetap SDK.