This is demonstration for integration ZOLOZ on Web Application Node.js. For more details, you can check at here
- Node js v16.11.1
- NPM v8.10.0 (packaged by Node js)
-
Clone this repo
-
Navigate your cloned project on your directory
-
Install the package
npm install
-
Prepare Client ID, ZOLOZ transaction public key following on here
-
On root directory, copy the file .env.example to .env and fill parameters as you had prepare before. Note: WEB_URL is your domain web.
-
Edit variable WEB_URL on file index.js in the src directory.
-
Store the merchant_private_key.pem to your root directory.
-
Run the app locally
npm run dev
Expected Output
ready - started server on 0.0.0.0:80, url: http://localhost:80
info - Loaded env from E:\Semester\7\zoloz\WebZoloz\.env.local
Access http://localhost on your web browser