PayIn is a versatile web application built with Next.js and the MERN stack (MongoDB, Express.js, React, Node.js). It offers a seamless solution for managing invoices, supporting operations like CREATE, READ, UPDATE, and DELETE. Furthermore, PayIn integrates the Instamojo payment gateway, allowing users to securely process invoice payments.
- Features
- Technologies Used
- Getting Started
- Adding Instamojo Payment Gateway
- Usage
- Screenshots
- Contributing
- License
- Invoice Management: Easily manage invoices with CRUD operations.
- Payment Processing: Securely process payments using Instamojo.
- User-Friendly Interface: Intuitive design for a seamless workflow.
- Next.js Application: Built with Next.js, MongoDB, Express.js, React, and Node.js.
- Frontend:
- Next.js
- React.js
- HTML, CSS, JavaScript
- Backend:
- Node.js
- Express.js
- MongoDB
- Payment Gateway:
- Instamojo
- Deployment:
- Vercel
- Node.js and npm (Node Package Manager) installed.
- MongoDB installed and running.
- An Instamojo account.
-
Sign Up for an Instamojo Account Visit Instamojo and sign up for an account if you don't have one already.
-
Create an API Key Once logged in, create an API Key by following Instamojo's documentation or developer resources.
-
Integrate Instamojo in Your Project Add the Instamojo Node.js library to your project: shell Copy code npm install instamojo-nodejs --save Import and configure the Instamojo library in your code: javascript Copy code const Instamojo = require('instamojo-nodejs'); const instamojo = new Instamojo({ apiKey: 'YOUR_API_KEY', authToken: 'YOUR_AUTH_TOKEN', endpoint: 'https://api.instamojo.com/v2/', }); Use the library to initiate payments.
-
Payment Handling Implement payment handling logic in your project based on the Instamojo documentation. Ensure that your application listens for payment status updates and updates the invoice accordingly.
Usage To create a new invoice, click on the "New Invoice" button and fill in the required information. To view and manage existing invoices, navigate to the "Invoices" section. To process a payment, select an invoice and click the "Pay Now" button.