From 7e5794026bf38b5b253b32afc17a8b8f04102eb5 Mon Sep 17 00:00:00 2001 From: Hibari Khoo <37998538+Hibar3@users.noreply.github.com> Date: Mon, 21 May 2018 11:46:05 +0800 Subject: [PATCH] Create ReadMe.md --- Seamless_Integration/ReadMe.md | 51 ++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Seamless_Integration/ReadMe.md diff --git a/Seamless_Integration/ReadMe.md b/Seamless_Integration/ReadMe.md new file mode 100644 index 0000000..2d77dcf --- /dev/null +++ b/Seamless_Integration/ReadMe.md @@ -0,0 +1,51 @@ +## Seamlesss Integration with Node.js + +### Pre-Requisite +1. Node Js installed(preferably latest version) +2. Install package md5 +3. Install package request +4. Install package express +5. Install package body-pareser +6. MOLPay Development or Production ID. +7. MOLPay General API. + +For ease of use, a demo version has been uploaded along with a sample html file and all required node modules in a zip file. +If there is any trouble in using the uploaded package modules, the packages can be easily installed on windows via npm install +or you can just refer here https://www.npmjs.com/ . + + +### Installation +1. Download the app.js file +2. Put app.js file in same directory with your project files. +3. Open command prompt terminal,locate destination of app.js. +4. Remember to change name inside app.js of 'index.html' to your own html page. (There is only 1 line with index.html) +5. Run 'node app.js' to execute file. +6. Open localhost based on given localhost server to access your web page. + +### Set Environment +Set which type of enviroment to use with either sandbox or production +```Javascript +var enviroment = "sandbox" or "production" +``` +For the html demo, set the environment using the following links. + +For sandbox: +```html + +``` + +For production +```html +