An open API service indexing awesome lists of open source software.

https://github.com/maniklakhanpal/razorpay

Learn how to seamlessly integrate Razorpay into your web application with this concise and practical repository! 💳✨
https://github.com/maniklakhanpal/razorpay

razorpay razorpay-api razorpay-payment

Last synced: 7 months ago
JSON representation

Learn how to seamlessly integrate Razorpay into your web application with this concise and practical repository! 💳✨

Awesome Lists containing this project

README

          

# 📦 RazorPay Integration Example

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](https://example.razorpay.w16manik.ninja)

## ✨ Features
- 🔌 **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.

## ⚙️ Installation
1. **Clone the Repository:**
```bash
git clone https://github.com/ManikLakhanpal/razorpay.git
```
2. **Install Dependencies:** Run `npm install` in both the client and server directories.
3. **Configure API Credentials:** Set up your RazorPay API credentials in the `.env` file located in both the client and server folders.
4. **Start the Server:**
```bash
node --env-file=.env index.js
```
Ensure you're using the latest version of Node.js. 🔄
5. **Start the Client:**
```bash
npm run dev
```

## 🚀 Usage
1. Open the application in your web browser. 🌐
2. Enter the desired payment amount. 💵
3. Fill in your payment details via the RazorPay portal. 💳
4. Complete the payment using the available methods. ✅
5. Receive a confirmation message and check the payment status on the frontend. 🔄
6. You can check my example [site](https://example.razorpay.w16manik.ninja) that I created for you.

## 👥 Contributing
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. 🎯

## 📄 License
This project is licensed under the [MIT License](https://opensource.org/licenses/MIT). 📜

## 📚 Example
To run the project and test the payment integration:
1. **Start the Server:**
```bash
node --env-file=.env index.js
```
2. **Start the Client:**
```bash
npm run dev
```
3. Open your browser and navigate to the application.
4. Enter an amount and complete the payment process.