{"id":19268856,"url":"https://github.com/shivasurya/instamojo-webhook","last_synced_at":"2025-04-21T20:32:11.510Z","repository":{"id":57274962,"uuid":"82258219","full_name":"shivasurya/instamojo-webhook","owner":"shivasurya","description":"instamojo webhook handling and verification library for Express js Middleware","archived":false,"fork":false,"pushed_at":"2017-09-20T16:48:10.000Z","size":7,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-03-23T11:23:53.258Z","etag":null,"topics":["instamojo-payment-gateway","instamojo-plugin","instamojo-sdk","node-js","node-module"],"latest_commit_sha":null,"homepage":null,"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/shivasurya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-17T04:47:26.000Z","updated_at":"2023-03-04T05:11:27.000Z","dependencies_parsed_at":"2022-09-18T13:23:33.447Z","dependency_job_id":null,"html_url":"https://github.com/shivasurya/instamojo-webhook","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivasurya%2Finstamojo-webhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivasurya%2Finstamojo-webhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivasurya%2Finstamojo-webhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivasurya%2Finstamojo-webhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shivasurya","download_url":"https://codeload.github.com/shivasurya/instamojo-webhook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223876688,"owners_count":17218443,"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":["instamojo-payment-gateway","instamojo-plugin","instamojo-sdk","node-js","node-module"],"created_at":"2024-11-09T20:17:35.229Z","updated_at":"2024-11-09T20:17:35.745Z","avatar_url":"https://github.com/shivasurya.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# instamojo-webhook\ninstamojo webhook handling and verification library for Express js Middleware \u003cbr /\u003e \u003cbr /\u003e\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n\n## Installation\n\nThis is a [Node.js](https://nodejs.org/en/) module available through the\n[npm registry](https://www.npmjs.com/). Installation is done using the\n[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):\n\n```bash\n$ npm install instamojo-webhook\n```\n\n## API\n\n```js\nvar instamojoWebhook = require('instamojo-webhook')\n```\n\n### instamojoWebhook(options)\nCreate a webhook middleware with the given `options`.\n\n#### Options\n\n`instamojo-webhook` accepts secret salt provided Instamojo Developers page in the options object.\n\n```js\ninstamojoWebhook({ secretKey: 'Your Secret SALT provided by instamojo'});\n```\n\n### req.instamojo\n\nTo store or access instamojo payment data, simply use the request property `req.instamojo`,\nwhich is (generally) serialized as JSON , so nested objects\nare typically fine. For example :\n\n```js\nvar express = require(\"express\");\nvar app = express();\nvar bodyParser = require('body-parser');\nvar instamojoWebhook = require(\"instamojo-webhook\");\n\napp.use(bodyParser());\nvar instamojoMiddleWare = instamojoWebhook({ secretKey: 'Your Secret Salt provided by Instamojo'});\n\napp.post(\"/\",instamojoMiddleWare,function(req,res){\n  console.log(req.instamojo);\n  res.send(\"hello\");\n})\n\n```\n\n##Why this Module ?\n\nI've written blog post for handling instamojo webhook - [link](http://www.i-visionblog.com/2015/08/working-with-instamojo-payment-integration-for-mobile-and-web-apps.html \"Blog post\"). \nGot several response via e-mail *sample code for handling instamojo webhook* and made me to design this npm module.\n\n##Contribution\nYou're always welcome to submit pull request. Here is small to-do list for next enhanced version. \u003cbr /\u003e\n* Prevent Injection attackk, clean all post variables\n* Writing Test module for this Module\n\n##License\n\nThe MIT License\n\nCopyright (c) 2017 Shivasurya S, http://www.i-visionblog.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n[npm-image]: https://img.shields.io/npm/v/instamojo-webhook.svg\n[npm-url]: https://npmjs.org/package/instamojo-webhook\n[downloads-image]: https://img.shields.io/npm/dm/instamojo-webhook.svg\n[downloads-url]: https://npmjs.org/package/instamojo-webhook\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshivasurya%2Finstamojo-webhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshivasurya%2Finstamojo-webhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshivasurya%2Finstamojo-webhook/lists"}