{"id":13989425,"url":"https://github.com/alitnk/monopay","last_synced_at":"2025-04-07T14:12:56.688Z","repository":{"id":39059110,"uuid":"413545402","full_name":"alitnk/monopay","owner":"alitnk","description":"💳 A node.js package for making payment transactions with different payment gateways","archived":false,"fork":false,"pushed_at":"2024-09-13T09:17:06.000Z","size":5396,"stargazers_count":114,"open_issues_count":6,"forks_count":19,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-10-14T08:27:15.294Z","etag":null,"topics":["idpay","iran","iran-payment","iranian","iranian-bank","node","node-js","node-payment","nodejs","nodejs-payment","payir","payment","payment-gateway","persian","saman","saman-bank","shaparak","zarinpal","zibal"],"latest_commit_sha":null,"homepage":"https://monopay.js.org","language":"TypeScript","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/alitnk.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-04T18:47:57.000Z","updated_at":"2024-09-13T08:49:10.000Z","dependencies_parsed_at":"2023-01-17T18:01:10.512Z","dependency_job_id":"bddccec0-9195-4641-8f84-f019e30db3d6","html_url":"https://github.com/alitnk/monopay","commit_stats":{"total_commits":184,"total_committers":7,"mean_commits":"26.285714285714285","dds":0.6413043478260869,"last_synced_commit":"c0b45c40719fb7b9d2ccd169ba5fbff4445b26ec"},"previous_names":["alitnk/polypay.js"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alitnk%2Fmonopay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alitnk%2Fmonopay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alitnk%2Fmonopay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alitnk%2Fmonopay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alitnk","download_url":"https://codeload.github.com/alitnk/monopay/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247666014,"owners_count":20975788,"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":["idpay","iran","iran-payment","iranian","iranian-bank","node","node-js","node-payment","nodejs","nodejs-payment","payir","payment","payment-gateway","persian","saman","saman-bank","shaparak","zarinpal","zibal"],"created_at":"2024-08-09T13:01:38.816Z","updated_at":"2025-04-07T14:12:56.664Z","avatar_url":"https://github.com/alitnk.png","language":"TypeScript","readme":"# Monopay - مونو‌پِی\n\n![monopay](https://github.com/alitnk/monopay/raw/graphics/github-readme-logo.png)\n\n![Intended Runtime Environment: Node.js](https://img.shields.io/badge/Node.js-43853D?style=for-the-badge\u0026logo=node.js\u0026logoColor=white)\n![NPM Version](https://img.shields.io/npm/v/monopay?style=for-the-badge)\n![License](https://img.shields.io/npm/l/monopay?style=for-the-badge)\n![Last Comit](https://img.shields.io/github/last-commit/alitnk/monopay?style=for-the-badge)\n\n\u003c!-- ![NPM Downloads](https://img.shields.io/npm/dm/monopay?style=for-the-badge) --\u003e\n\nA node.js package for making payment transactions with different Iranian IPGs with one single API. (Previously known as \"Polypay\")\n\nمونو‌پِی یک پکیج نود جی اس برای انجام تراکنش‌های آنلاین با سرویس های درگاه پرداخت مختلف با یک رابط واحد است.\n\nدر صورتی که از پکیج خوشتون اومده، بهش استار بدید تا بیشتر دیده بشه و مشکلاتش زودتر برطرف بشن. 🙏\n\n\u003e لطفا قبل از استفاده در پروداکشن،‌ از پایدار بودن درایور مطمئن شوید. - [جدول پشتیبانی درایور ها](https://monopay.js.org/fa/drivers)\n\n## 📖 Documentation\n\n- [Documentation](https://alitnk.github.io/monopay/)\n- [مستندات فارسی](https://alitnk.github.io/monopay/fa/)\n\n## 🔌 Installation\n\nFor npm users:\n\n```shell\nnpm install monopay\n\n```\n\nFor yarn users:\n\n```shell\nyarn add monopay\n```\n\n## 🚀 Usage\n\n- [Usage Guide](https://monopay.js.org/payment-procedure/)\n- [نحوه استفاده به فارسی](https://monopay.js.org/fa/payment-procedure/)\n\n## ⚒ Examples\n\n### Getting a payment driver\n\n```javascript\nconst driver = getPaymentDriver('zibal')({\n  merchantId: 'merchant-id',\n  sandbox: true,\n});\n```\n\n### Requesting for payment\n\n```javascript\nconst paymentInfo = await driver.request({\n  amount: 200000, // IRR\n  callbackUrl: 'mysite.com/callback',\n});\n```\n\n### Verifying the payment in callback\n\n```javascript\napp.all('/callback', async (req, res) =\u003e {\n  const receipt = await driver.verify(\n    {\n      amount: 200000, // IRR\n      referenceId: 1234,\n    },\n    { ...req.query, ...req.body },\n  );\n\n  res.json({\n    referenceId: receipt.referenceId,\n    success: true,\n    message: 'The payment transaction was successful.',\n  });\n});\n```\n\nA full example with express can be found [here](examples/express-javascript)\n\n## 📜 TODO List\n\n- [ ] Support for all the drivers\n- [ ] Add NestJS module integration\n- [ ] Examples for Koa, Fastify and NestJS\n- [ ] \"Re-brand\" (Logo and banner)\n\n## 🤝 Contribution\n\nPlease read [Contribution](CONTRIBUTING.md) and [Code Of Conduct](CODE_OF_CONDUCT.md).\n\n## 📝 License\n\nMIT License - Please see [License File](LICENSE) for more information.\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falitnk%2Fmonopay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falitnk%2Fmonopay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falitnk%2Fmonopay/lists"}