Chapa-Et / chapa-nodejs-express

Unofficial Chapa Payment Implementation with Express.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chapa Payment Integration

This is Unofficial implementation of payment with Chapa API using expressjs

Getting started

To get the Node server running locally:

  • Clone this repo
  • npm install to install all required dependencies
  • npm run dev to start the local server
  • https://localhost:4400 go to this URL after the server starts running

Code Overview

Dependencies

  • expressjs - The server for handeling and routing HTTP requests
  • axios - The Promise based HTTP client
  • ejs - The view engine or the front end of our app

Application structure

  • index.js - The entry point to our application
  • views/ - This folder contains our front end

Running phase and requirements

In order to make a test transaction

  • Go to Chapa and register
  • After registration go to setting > API and get your SECRET-KEY
  • Paste the KEY in the proper section inside index.js
  • Also get a Testing card from Chapa Here
  • Now you are good to go

About

Unofficial Chapa Payment Implementation with Express.js

License:MIT License


Languages

Language:JavaScript 75.8%Language:EJS 24.2%