Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.26 KB

README.md

File metadata and controls

30 lines (23 loc) · 1.26 KB

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