This project showcases a seamless integration of RazorPay, a widely-used payment gateway, into a web application. It demonstrates the essential steps to process payments securely and efficiently. π³
Example site: https://example.razorpay.w16manik.ninja
- π Easy Integration: Quickly connect to the RazorPay API.
- π Secure Payments: Ensure safe and reliable transactions.
- π¨ Customizable Forms: Tailor payment forms to your needs.
- π Real-Time Updates: Receive instant feedback on payment statuses.
- π‘οΈ Robust Error Handling: Comprehensive validation and error management.
- Clone the Repository:
git clone https://github.com/ManikLakhanpal/razorpay.git
- Install Dependencies: Run
npm installin both the client and server directories. - Configure API Credentials: Set up your RazorPay API credentials in the
.envfile located in both the client and server folders. - Start the Server:
Ensure you're using the latest version of Node.js. π
node --env-file=.env index.js
- Start the Client:
npm run dev
- Open the application in your web browser. π
- Enter the desired payment amount. π΅
- Fill in your payment details via the RazorPay portal. π³
- Complete the payment using the available methods. β
- Receive a confirmation message and check the payment status on the frontend. π
- You can check my example site that I created for you.
Contributions are highly encouraged! π If you have suggestions or improvements, please submit a pull request. Be sure to adhere to the project's code of conduct. π―
This project is licensed under the MIT License. π
To run the project and test the payment integration:
- Start the Server:
node --env-file=.env index.js
- Start the Client:
npm run dev
- Open your browser and navigate to the application.
- Enter an amount and complete the payment process.