potato
Khalti-web-sdk integration example with Vue.js and Node.js
client
Front end component for an eCommerce application. Built with Vue.js and powered by Khalti for payment processing.
Build Setup
cd client
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
nodejs backend
Run server
cd node_server
npm install
node server.js
flask (python) backend
Run server
cd flask_server
source venv.sh
pip install -r requirement.pip
python server.js
Summery
These are steps summerizing whole integration:
-
Signup as merchant https://khalti.com/merchant/
-
Obtain developers keys from merchant dashboard
-
Test integration with test keys
- Client side integration
- Server side integration
nodejs https://github.com/chapagainmanoj/Khalti-sdk-example-vue/blob/master/node-server/server.js
flask https://github.com/chapagainmanoj/Khalti-sdk-example-vue/blob/master/flask-server/app.py
-
Deploy integration replace with live keys