is a demo or example project on how to integrate a payment gateway in a web application.
This uses Paystack as it's payment gateway.
No real transaction is made. It is just an example project.
Online Payment was developed with JavaScript (ES6), Node.js using Express 4.
with Airbnb JavaScript Style Guide and EJS
API endpoints URL - http://localhost:3000/
METHOD | DESCRIPTION | ENDPOINT |
---|---|---|
GET | Get home page | |
GET | GET Donation form | pay |
POST | POST Donation form | paystack/pay |
GET | Only loads when error occurs | error |
GET | Get a Donor specific data | receipt/:donorId |
GET | Get Paystack callback url | paystack/callback |
Make sure you have Node.js 12.14.1 installed and POSTMAN.
git clone https://github.com/emma50/online_payment.git
cd online_payment
npm install
npm start
Online Payment should now be running on localhost:3000.