{"id":20838861,"url":"https://github.com/nidhish-nayak/node-razorpay","last_synced_at":"2026-05-05T01:31:30.794Z","repository":{"id":177386161,"uuid":"660296419","full_name":"nidhish-nayak/node-razorpay","owner":"nidhish-nayak","description":"Node express server for Razorpay integrations. This repository handles all the backend and payment-integration api for the project \"fabric-clothing\".","archived":false,"fork":false,"pushed_at":"2023-08-05T17:39:52.000Z","size":77,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T23:44:10.547Z","etag":null,"topics":["axios","express","node","razorpay-payment","rest-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nidhish-nayak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-06-29T17:18:42.000Z","updated_at":"2023-11-19T20:36:39.000Z","dependencies_parsed_at":"2023-09-10T09:43:18.621Z","dependency_job_id":null,"html_url":"https://github.com/nidhish-nayak/node-razorpay","commit_stats":null,"previous_names":["nidhish-d-nayak/node-stripe","nidhish-nayak/node-razorpay"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidhish-nayak%2Fnode-razorpay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidhish-nayak%2Fnode-razorpay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidhish-nayak%2Fnode-razorpay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidhish-nayak%2Fnode-razorpay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nidhish-nayak","download_url":"https://codeload.github.com/nidhish-nayak/node-razorpay/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243196663,"owners_count":20251861,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["axios","express","node","razorpay-payment","rest-api"],"created_at":"2024-11-18T01:11:44.580Z","updated_at":"2025-12-28T05:03:06.326Z","avatar_url":"https://github.com/nidhish-nayak.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌟 Razorpay Payment Gateway API with NodeJS 🌟\n\nSupercharge your Node.js server with the power of Razorpay payment gateway!\n\n## ✨ Prerequisites\n\nBefore you dive into the magic of Razorpay Payment Gateway Integration API, make sure you have the following enchantments ready:\n\n- 🧙‍♂️ Node.js installed on your machine.\n- 🧪 A mystical Razorpay account with API key and secret.\n\n## 🚀 Getting Started\n\nTo embark on this mystical journey, follow these steps:\n\n1. ✨ Clone the repository and enter the magical realm:\n\n   ```bash\n   git clone \u003crepository-url\u003e\n   cd node-razorpay\n   ```\n\n2. 🧙‍♂️ Cast the spell to install the dependencies:\n\n   ```bash\n   npm install\n   ```\n\n3. 📜 Create a `.env` scroll in the root directory and inscribe your Razorpay API key and secret within:\n\n   ```plaintext\n   RAZORPAY_KEY_ID=\u003cyour-key-id\u003e\n   RAZORPAY_SECRET=\u003cyour-secret\u003e\n   ```\n\n4. 🎩 Wave your wand to start the server:\n\n   ```bash\n   npm run dev\n   ```\n\n   The portal to the server will open at http://localhost:4000. Enter at your own risk!\n\n## 🧙‍♂️ API Endpoints\n\nThe API is home to the following magical portals:\n\n#### ✨ GET /orders\n\n- This 🔮 portal allows you to create a Razorpay order with just a flick of your wand. Simply provide the desired `price` and behold the order details that will be revealed to you!\n\n#### 🎁 Request Parameters\n\n- `price` (query parameter): The price of the order you wish to create.\n\n#### 🔮 Response\n\n- Success: 200 OK! The order details will be unveiled in the response body, ready for you to explore.\n- Error: 500 Internal Server Error! An error message will be revealed, guiding you through the troubles.\n\n#### ✨ GET /orders/:orderId/payments\n\n- This 🌟 portal allows you to fetch the payments associated with a specific order. Provide the `orderId` and witness the magical details of the payments unfold before your eyes!\n\n#### 🎁 Request Parameters\n\n- `orderId` (query parameter): The ID of the order for which you want to fetch the payments.\n\n#### 🔮 Response\n\n- Success: 200 OK! The payment details will be revealed in the response body, showcasing the captivating information.\n- Error: 500 Internal Server Error! An error message will be unveiled, guiding you through the troubles.\n\n## 🧙‍♂️ Usage\n\nTo create a Razorpay order, whisper the sacred incantation in the form of a GET request to the `/orders` portal, with the `price` query parameter set to the desired amount. The API will wield its powers to create the order and reveal its magnificent details.\n\n🪄 Example Incantation:\n\n```http\nGET /orders?price=1000\n```\n\n⚡️ Example Response:\n\n```json\n{\n\t\"id\": \"order_1234567890\",\n\t\"entity\": \"order\",\n\t\"amount\": 1000,\n\t\"currency\": \"INR\",\n\t\"receipt\": \"receipt#1\",\n\t\"createdAt\": 1671234567\n\t// ... other captivating order details\n}\n```\n\nTo fetch the payments associated with a specific order, conjure a GET request to the `/orders/:orderId/payments` portal, replacing `:orderId` with the actual ID of the order\n\n. The API will unleash its powers and reveal the mesmerizing payment details.\n\n🪄 Example Incantation:\n\n```http\nGET /orders/order_1234567890/payments\n```\n\n⚡️ Example Response:\n\n```json\n{\n\t\"count\": 2,\n\t\"entity\": \"collection\",\n\t\"items\": [\n\t\t{\n\t\t\t\"id\": \"pay_1234567890\",\n\t\t\t\"entity\": \"payment\",\n\t\t\t\"order_id\": \"order_1234567890\",\n\t\t\t\"amount\": 1000,\n\t\t\t\"status\": \"captured\"\n\t\t\t// ... other captivating payment details\n\t\t},\n\t\t{\n\t\t\t\"id\": \"pay_0987654321\",\n\t\t\t\"entity\": \"payment\",\n\t\t\t\"order_id\": \"order_1234567890\",\n\t\t\t\"amount\": 2000,\n\t\t\t\"status\": \"captured\"\n\t\t\t// ... other captivating payment details\n\t\t}\n\t]\n\t// ... other captivating collection details\n}\n```\n\n## ✨ Contributing\n\nJoin the league of magical developers! Contributions are welcomed and celebrated in this mystical realm. If you encounter any issues or have ideas for enchantments, feel free to open an issue or cast a pull request.\n\n## 📜 License\n\n#### This project is licensed under the [MIT License](LICENSE). Cast your spells responsibly!\n\nFeel free to further customize the README according to your project's requirements and add any additional information or sections as needed.\n\nHappy coding!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnidhish-nayak%2Fnode-razorpay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnidhish-nayak%2Fnode-razorpay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnidhish-nayak%2Fnode-razorpay/lists"}