GithubHelp home page GithubHelp logo

dhelafrank / paystack-api-integration Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 24 KB

Implementation of Paystack Transaction API From the Backend Using ExpressJS

License: MIT License

JavaScript 100.00%

paystack-api-integration's Introduction

Paystack API Integration

This project demonstrates how to integrate the Paystack payment gateway into a backend application built with Express.js and MongoDB.

Overview

This project provides a simple example of integrating the Paystack API for processing payments within a Node.js and Express.js environment. It showcases basic functionalities such as creating transactions, verifying payments, and handling callbacks from Paystack.

Features

  1. Create Transactions: Allows users to initiate transactions through Paystack.

  2. Verify Payments: Verifies payment status and details using Paystack API.

Technologies Used

  • Node.js: JavaScript runtime environment
  • Express.js: Web application framework for Node.js
  • MongoDB: NoSQL database for storing transaction data
  • Paystack API: Payment gateway for processing online payments

Setup Instructions

  1. Clone the repository:
git clone https://github.com/dhelafrank/Paystack-API-Integration.git
  1. Install Dependencies
cd Paystack-API-Integration
npm install
  1. Set up enviromental variables by using the sample from .env.sample make sure to replace the placeholder with your actual data

  2. Start the server

npm start
  1. Access your application from the port logged on the console

Usage

  • Use the provided endpoints to interract with the Paystack API
  • Refer to the API documentation for detailed instructions

API Endpoints

  • POST /api/v1/initialize: Initiate a new transaction
  • GET /api/v1/verifyPayment: Verify a transaction
  • POST /api/v1/getPayment: Get a transaction reciept

License

This project is licensed under the MIT License

paystack-api-integration's People

Contributors

dhelafrank avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.