Khalti payment gateway integration example with Vuejs, Node and Flask
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
client
flask_server
node_server
.gitignore
README.md

README.md

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:

  1. Signup as merchant https://khalti.com/merchant/

  2. Obtain developers keys from merchant dashboard

  3. Test integration with test keys

    • Client side integration

    https://github.com/chapagainmanoj/Khalti-sdk-example-vue/blob/master/frontend/src/components/Order.vue#L118)

    • 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

  4. Deploy integration replace with live keys