{"_id":"payme-merchant-integrator","_rev":"81-ffb644824e757959af9cbce23c661ed2","name":"payme-merchant-integrator","dist-tags":{"latest":"1.2.13"},"versions":{"1.2.9":{"name":"payme-merchant-integrator","version":"1.2.9","description":"Integration with payme","main":"dist/app.js","types":"typings/app.d.ts","scripts":{"build":"tsc"},"keywords":["payme","integration","with-mongoose"],"homepage":"https://github.com/yusufjonnazarov/payme-merchant-integrator#readme","repository":{"url":"git+https://github.com/yusufjonnazarov/payme-merchant-integrator.git"},"author":{"name":"@yusufjonnazarov"},"license":"ISC","dependencies":{"class-transformer":"^0.4.0","class-validator":"^0.13.1","mongoose":"^5.13.3"},"devDependencies":{"tslib":"^2.3.0"},"gitHead":"eda5f1650f9bf5efad1dfe8176748d6150c8cbdb","bugs":{"url":"https://github.com/yusufjonnazarov/payme-merchant-integrator/issues"},"_id":"payme-merchant-integrator@1.2.9","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-Rs4d7wj/Ox1NzRgM5PWi9FWy64IQqF6FXuTQHcGdsrC/A+yXZNGF8IiobkUuUAysc3QWEwbDZLVgcZtF6XE9Fw==","shasum":"0e0fa4dd941dc452f45b48305abe8402541f3901","tarball":"https://registry.npmjs.org/payme-merchant-integrator/-/payme-merchant-integrator-1.2.9.tgz","fileCount":21,"unpackedSize":111889,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnPpoCRA9TVsSAnZWagAAkTUP/R1iVj95EIirnui3MsgI\nCRjQWpcIKb/VhOi8elKuqp2gAniqDagL1eQ/nPSwDDKAKTgSxqPSl3NMkG9D\nHGaHoSsNSzQyQTWQxSKdd+bUkel8LOX/FDKHfC7r05Z749wmCEuf1VnShGDV\nRh0RnT7pGFWfSAGqpIfoLc4PcN8NEaHgFWZKD1cpmT94xtJfdxaObYy0fWG7\npn9/izW2gFOON7Y9d3sxOFpkhAQTwr75lNrZRyMAVxY6uK+RPMzB+HamYaUz\n6/kROKkK3B1CPsTpgRk5nmxJwVmWQJcijJdfPIG26uUd+3lB5VYqTl8q501Q\nUO6u2RHPYZaS4tdcxehcS41wdttxIG7cBT1DaEC/tUk4+8C+dAfwP3AAz3xW\noLyG9NwH9g4phzAxqCxbB84VX03xE8JRqFMbmfiDlj13qwGQwtVZBgRhBnA/\nUm9oNAysXb1Koz+FkPAO1pGo7M1F24rDLXO7pELrGJDcpxut2+BwMnGe/0/s\ntb/g3dgHxoZM/x5usEJqGQZDNh9isd88oEXbQJsnPeJkU9j8OjhmxGk0oaLn\nhrRFpu2Jmi3/LKrHqXFOqt+Aw3NYP/SN0HRxrkziSQhPjfHF5iqChLgo5yeq\nEZ1mQGOwcaAA43AJolQ9icf4oXX5sjc8TU0/KtzE/j9gtUO2dZ/BMJsp+89a\ndNB4\r\n=9nNy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZ5Qi6OZcpzx2BhMcrkknfBO5eTozCFEofzzzL7buZMwIgIhTr4fejLONgd2eAFY2h+lLMZD8C1Sra4uUGv5ZWq4A="}]},"_npmUser":{"name":"yusufjonnazarov","email":"yusufjon99nazarov@gmail.com"},"directories":{},"maintainers":[{"name":"yusufjonnazarov","email":"yusufjon99nazarov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/payme-merchant-integrator_1.2.9_1637677672326_0.6850075720866309"},"_hasShrinkwrap":false},"1.2.10":{"name":"payme-merchant-integrator","version":"1.2.10","description":"Integration with payme","main":"dist/app.js","types":"typings/app.d.ts","scripts":{"build":"tsc"},"keywords":["payme","integration","with-mongoose"],"homepage":"https://github.com/yusufjonnazarov/payme-merchant-integrator#readme","repository":{"url":"git+https://github.com/yusufjonnazarov/payme-merchant-integrator.git"},"author":{"name":"@yusufjonnazarov"},"license":"ISC","dependencies":{"class-transformer":"^0.4.0","class-validator":"^0.13.1","mongoose":"^5.13.3"},"devDependencies":{"tslib":"^2.3.0","typescript":"^4.6.4"},"gitHead":"2fae9cbee7d7abd3c4163eeeb24389650e3edef2","bugs":{"url":"https://github.com/yusufjonnazarov/payme-merchant-integrator/issues"},"_id":"payme-merchant-integrator@1.2.10","_nodeVersion":"14.19.3","_npmVersion":"6.14.17","dist":{"integrity":"sha512-/vOo80WOExaFYHl8fabV4OzxSh4j3YWMOMg1SUJznjGlc+fyW57ZAcTHpu4BKKGOIVwlowugDEHPVY6vxVQRrw==","shasum":"005d8c61de44aa03f3967e480e6cd22e1a119181","tarball":"https://registry.npmjs.org/payme-merchant-integrator/-/payme-merchant-integrator-1.2.10.tgz","fileCount":21,"unpackedSize":112347,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGp6wLLbzrhyjAs4LSHesVu/p77rK3xTQK8qxLaAJL+XAiEAmPfJ/0mjTnkn6lHFSFOWwwdacaqmOSwHR3HeKGa1f/c="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihjn2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrpRw//UIcocIPCJFr76Av1Ge2klG/xVJsexyCAUED+rj1LbOjp/5k6\r\nloA89uGLSFdQHomOKZpQnL+atgcyk0HY4zeWpru/dtBF+QY2Douz6GnpL6nD\r\nsfl+PCWUgevEkv6tV43pYPcNu6CMw+DRInkPi10jrcFUwsSDd9JlsAWeh/xB\r\n1ug32wHlwigOIQlvKi+Rb7Q+Rn361kBgDC0VvI5sMdXxkxN3L9k7m6lb88YM\r\nfyXj2pCfyaGptNHou9WDUU+vG5wAjQ8d0oQSPe/C/l+byuHsfvbakH9gyV7+\r\nq4oS5+zGf/0IFQf8D9GqjggHb5+ZTnFI6vrJHzZfuo6RrX9GE1j3359OBohq\r\n1Hnf3qP85zsPR07DTNRiswOWD1CcXx5aVXu2oFNwQuPZh342LhV7QoqGw6B7\r\nvfqLaGhqgt/edB2TsivNBPXRKIOkTPOJis/iyNLoF6cBqU1Kcnv4dcsoNA28\r\nfcfqUXzyMsD3uHN6J0pWsyi2TtxW0m102LUE4dO9SpPgEzb9R/gKKp3A+wB3\r\nt1WEmT9elbF6QbDFIcazOKRwGjbHpKyxXaCgWWn1o1dfdoKEk89L0KMHUgQA\r\nzG9c8g7rGfkf0w95/F2S6f//TXQrVnpTZXyhHls3HRhh/ae7sv5kJt47Z3e0\r\nF7NnwSzsCIix+Pi3js2D3p15Qyc3T3yCC+A=\r\n=0HhT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"yusufjonnazarov","email":"yusufjon07nazarov@gmail.com"},"directories":{},"maintainers":[{"name":"yusufjonnazarov","email":"yusufjon07nazarov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/payme-merchant-integrator_1.2.10_1652963829928_0.7780363612123657"},"_hasShrinkwrap":false},"1.2.11":{"name":"payme-merchant-integrator","version":"1.2.11","description":"Integration with payme","main":"dist/app.js","types":"typings/app.d.ts","scripts":{"build":"tsc"},"keywords":["payme","integration","with-mongoose"],"homepage":"https://github.com/yusufjonnazarov/payme-merchant-integrator#readme","repository":{"url":"git+https://github.com/yusufjonnazarov/payme-merchant-integrator.git"},"author":{"name":"@yusufjonnazarov"},"license":"ISC","dependencies":{"class-transformer":"^0.4.0","class-validator":"^0.13.1","mongoose":"^5.13.3"},"devDependencies":{"tslib":"^2.3.0","typescript":"^4.6.4"},"gitHead":"0f40babea8bd0cc55c8b75a59d2842cdcfa552cb","bugs":{"url":"https://github.com/yusufjonnazarov/payme-merchant-integrator/issues"},"_id":"payme-merchant-integrator@1.2.11","_nodeVersion":"14.19.3","_npmVersion":"6.14.17","dist":{"integrity":"sha512-RBuIRo8vnz/HuhdRL7GYSf1MpRbTMR9BCWO3tzNT/Nu2yK7ZnFWPCvY76w7lMTlzBb+anFKoLC/T3JlVUclzKQ==","shasum":"b168766ed3816f4c063d4371932ed60065f834b1","tarball":"https://registry.npmjs.org/payme-merchant-integrator/-/payme-merchant-integrator-1.2.11.tgz","fileCount":21,"unpackedSize":113807,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH86r37soHWF4GWsu7NWfnx5RM3G5pfNtIlDGSqWQTeDAiAzzGTG4N7h+Shv/nhZt0YOD6oZCj2C4Shxu8K+r6EIRQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihj3VACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq8oA/9HBeHNBbZ8GEOGyADmZy+jaebaxjp4Arwano7FcTZBvwdxjwa\r\nYJchgCaBST0kTJTzGIPmkPfMGpEHWuTxVNkO4e9BtUXTGSsWGFHFqOSNXcdg\r\njnHZzhSJjoZDGLDcdwUz/q+q/pMccaMCviNttXBi1RZ24hjhi8qrQ2M6ndit\r\n+Fd5xBQdjP8SkvsR146wF8FQj1rHihAfuf7KkQNeADU7cc76mv64dCf3k8ww\r\n/33p/qaFY3oFRERtv5PvXWk7JtpmMsw1baXJ72ej9z8CyQ+BQLLYNwRc2dUs\r\n17kMmqQRFYOWgkZoPTjPg+0/bygDUnt0BVNKbkaMF8vzxA3fEiyqH21+uSCJ\r\n+npQrPaX52Cp8zaX4huScoSVTdV4uKLY2ppT3R91K6q4uaqGM4Mq28s2N7td\r\nRtEz8QpnTYqIjjLhNsORWLl8BU6ImFCO5Jt74guWluLI/css5MOEI0yXfGp+\r\n6gMwnO/InIt1vAgWD6GntogR47L2mTpPUUMA3oSm6o9AYSHcNP7lZU8M03jc\r\nDRXwCxb8A1sepnEucfbEyfOqNYU4TyqOMHi3FqH3c7K7LgZEFPykANaJfTHK\r\nVuTgag3lqOFNi3fM0bIqefzZfXF5S9pzmohXMCRxiK8z85qwmrYIhEpFmLhP\r\nvQ9XQns0viiDn0Mxxu3jjrFAij87Yw7eP28=\r\n=fFxO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"yusufjonnazarov","email":"yusufjon07nazarov@gmail.com"},"directories":{},"maintainers":[{"name":"yusufjonnazarov","email":"yusufjon07nazarov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/payme-merchant-integrator_1.2.11_1652964821126_0.7105645785094132"},"_hasShrinkwrap":false},"1.2.12":{"name":"payme-merchant-integrator","version":"1.2.12","description":"Integration with payme","main":"dist/app.js","types":"typings/app.d.ts","scripts":{"build":"tsc"},"keywords":["payme","integration","with-mongoose"],"homepage":"https://github.com/yusufjonnazarov/payme-merchant-integrator#readme","repository":{"url":"git+https://github.com/yusufjonnazarov/payme-merchant-integrator.git"},"author":{"name":"@yusufjonnazarov"},"license":"ISC","dependencies":{"class-transformer":"^0.4.0","class-validator":"^0.13.1","mongoose":"^5.13.3"},"devDependencies":{"tslib":"^2.3.0","typescript":"^4.6.4"},"gitHead":"0aa116b039b232ba67f480338533f5ecfb048807","bugs":{"url":"https://github.com/yusufjonnazarov/payme-merchant-integrator/issues"},"_id":"payme-merchant-integrator@1.2.12","_nodeVersion":"14.19.3","_npmVersion":"6.14.17","dist":{"integrity":"sha512-MGIB5o8XNfiuytrKFHaAXHt61ssh8vS3ySKlMii+7tAZ5yQFspNqcoC1yabaofVUizR97mNkMxkJmkO13GPAVg==","shasum":"2cebe7ab44f3d01bcfb9295df5e9af645bb917fb","tarball":"https://registry.npmjs.org/payme-merchant-integrator/-/payme-merchant-integrator-1.2.12.tgz","fileCount":21,"unpackedSize":114491,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCy3hCKLXW6ixXbaXGGhBxXWlSc3KmQjrYeMrlbXiNGJAIgK2FJ/R33cWicIh6YNvnO0TSLApA3k8j4c3nPRy4j0ik="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihj7uACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq6Yw/9H9MZI6ZIWu33ZQAtAB6pNxyluJ9YAWHYeAqkYFawiYJetO61\r\nL/8oRR5t0CJ2Bacpe3LQt2mQGOto8RSD7Ax62vRjggHnj2yQkaxNf/AJIsuZ\r\nIEGbUTE93troZKyjARaFeqTJnDsWG5/sCYKrrky08pD2p8mqfT+LmWhv88zD\r\nm5j5SnpZcmDZCKe2xY96rT+CZbqi7kkjMpHKK7o1GivR7IyvCq3BXDn72Zd4\r\nrMwCiSlzFUEixbnI30epAXf0mG+cxhtUyLX7ZFwNwdCkIbaz5j4ICePRJ8op\r\neKhlPeHjDjdWRpwJTz/mtCFrZxep5dSYm+57PG3YfSij0PLJJjfWUafr7WDr\r\nHd7T0YJr0niKPMGatKlxPGZOeYvEi9TQdlkJF53j/Zua4sGrJiloKyF+C7kw\r\nmEZ/WL742QpkwI6Kb0TuBha1y7TAWhuMm8owSfm5tSysEYf1SiFt8rn6HICQ\r\n44OrAqGHOqzxFUXOQrSCSfCUVyOBRJHAe4kqg9TYH+0It1gF7anLnM4nys2S\r\nQFKGYE/bqop9pxiOiiOHy/Xf5L1pXbkIAAUPWQk2QYr3XVJy4n3gNZBGPpG/\r\nZ7PeTVr6D/7QZD1MMjGuRGEN4CzMBH8iZGKFtBGGc2PaIcvy/qX5Um66spmp\r\nd4a9Uj6pyPiSVf8ZxJqoZT/kMkH2EaYjRUw=\r\n=NsZY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"yusufjonnazarov","email":"yusufjon07nazarov@gmail.com"},"directories":{},"maintainers":[{"name":"yusufjonnazarov","email":"yusufjon07nazarov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/payme-merchant-integrator_1.2.12_1652965101802_0.142140072686477"},"_hasShrinkwrap":false},"1.2.13":{"name":"payme-merchant-integrator","version":"1.2.13","description":"Integration with payme","main":"dist/app.js","types":"typings/app.d.ts","scripts":{"build":"tsc"},"keywords":["payme","integration","with-mongoose"],"homepage":"https://github.com/yusufjonnazarov/payme-merchant-integrator#readme","repository":{"url":"git+https://github.com/yusufjonnazarov/payme-merchant-integrator.git"},"author":{"name":"@yusufjonnazarov"},"license":"ISC","dependencies":{"class-transformer":"^0.4.0","class-validator":"^0.13.1","mongoose":"^5.13.3"},"devDependencies":{"tslib":"^2.3.0","typescript":"^4.6.4"},"gitHead":"0aa116b039b232ba67f480338533f5ecfb048807","bugs":{"url":"https://github.com/yusufjonnazarov/payme-merchant-integrator/issues"},"_id":"payme-merchant-integrator@1.2.13","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-7FR0j+H7IEl8Q/BLjg/ISDtWEZLGcjEC2jU9GCjN45ILdb6jznxfgE1lsh4wnLCT9XUHYWBlgN3D24YtHrEcbg==","shasum":"146c67d1c12c4d692f45d29e190f52b85c0fd8f4","tarball":"https://registry.npmjs.org/payme-merchant-integrator/-/payme-merchant-integrator-1.2.13.tgz","fileCount":21,"unpackedSize":114184,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsQKo53EBsOijxYVmLu1ExEGQaCu9b9HlpKBatOrspMgIgMH4FFxhuh6RzGru0dTHcMwrk/ceAO9Nfqksw7UXGY5g="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7Ux6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoxmg/+KcoitWT706aoyQNGszXlAtXsMNe5yZ/il8SigKK6xLqB9YPm\r\nyY19oayM7YrP47bOOXwanBHUfZ/dz+WSj4IP8Yx+wiU10OABBJgFaJTl7wIa\r\n8mZQTTtJqj4meUNduY0P50GxDkzQFKxiPgcCMNXJR+xNPZe8HV4zHOa8a9Py\r\nNb+ytI3dQQgrhAq/N2bqi5pJH7cy267eHU6ZAePM+hHaOQhhF10acijx0lGD\r\nS3Xysfy9CMsmUG9PY3a7DopUzxc8tWWB8iStbgRFDYiJpHkSFKLtqMjUkNtU\r\nDyFfT0uYFfGD7IWmY0NyGIXmzQI0OeiL3hvE87XpNuOsKDuXO2lKMWy5oYEk\r\nhk2qPn/TMoQ03v7W6uJwopL2Lblb8tnSThu3hevHkTFVA5xjDTw33wc2EzkK\r\n62gVENV+x47uZeCyoDnZX5TP0/viOxcHH6SJMD/IkFhkEjrSFZ0oSvPAN5yx\r\nmAnOfuDKZ1c4IKpjNymajaBY3exja9uQe1z2g/XN2oFMB+aaoS5R2+twy6jD\r\n4fsgYHbSjuK6RdcA5SLO2p5zUdZXzYVKD9da8dcNGSIgycSBiOT033JXrg4o\r\n6lvTl8LNRX7tEbgK3U+A5G5rlyby5MzVTlIbpG4mEo7s1DDaTdR2NFNKMIxA\r\nfdh48+y5okYoDs2VL4JiMn4CxW9BB7yOObg=\r\n=oigf\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"yusufjonnazarov","email":"yusufjon07nazarov@gmail.com"},"directories":{},"maintainers":[{"name":"yusufjonnazarov","email":"yusufjon07nazarov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/payme-merchant-integrator_1.2.13_1659718778310_0.3907729958692516"},"_hasShrinkwrap":false}},"time":{"created":"2021-07-27T16:10:15.716Z","1.0.0":"2021-07-27T16:10:15.927Z","modified":"2022-08-05T16:59:38.540Z","1.0.1":"2021-07-27T21:19:26.369Z","1.0.2":"2021-07-27T21:24:59.486Z","1.0.3":"2021-07-27T21:26:21.601Z","1.0.4":"2021-07-28T02:39:25.346Z","1.0.5":"2021-07-28T02:46:55.290Z","1.0.6":"2021-07-28T02:50:17.115Z","1.0.7":"2021-07-28T03:03:06.971Z","1.0.8":"2021-07-28T03:06:58.436Z","1.0.9":"2021-07-28T03:12:53.969Z","1.0.10":"2021-07-28T03:14:54.175Z","1.0.11":"2021-07-28T03:19:51.463Z","1.0.12":"2021-07-28T03:20:43.164Z","1.0.13":"2021-07-28T03:25:42.297Z","1.0.14":"2021-07-28T03:48:38.748Z","1.0.15":"2021-07-28T03:51:11.408Z","1.0.16":"2021-07-28T03:53:31.742Z","1.0.18":"2021-07-28T04:01:12.252Z","1.0.19":"2021-07-28T04:03:18.909Z","1.0.20":"2021-07-28T04:04:55.287Z","1.0.21":"2021-07-28T04:10:02.798Z","1.0.22":"2021-07-28T04:46:23.311Z","1.0.23":"2021-07-28T04:48:22.101Z","1.0.24":"2021-07-28T05:01:30.344Z","1.0.25":"2021-07-28T05:06:38.722Z","1.0.27":"2021-07-28T05:12:34.497Z","1.0.28":"2021-07-28T05:35:20.886Z","1.0.29":"2021-07-28T05:37:52.833Z","1.0.30":"2021-07-28T05:41:49.521Z","1.1.0":"2021-09-10T20:29:00.764Z","1.1.1":"2021-09-10T20:36:44.700Z","1.1.2":"2021-09-10T20:54:40.568Z","1.2.3":"2021-09-10T21:03:08.427Z","1.2.4":"2021-09-10T21:29:21.916Z","1.2.5":"2021-09-10T21:31:26.793Z","1.2.6":"2021-09-16T05:55:08.040Z","1.2.7":"2021-09-16T06:02:13.314Z","1.2.8":"2021-09-16T06:11:11.248Z","1.2.9":"2021-11-23T14:27:52.467Z","1.2.10":"2022-05-19T12:37:10.128Z","1.2.11":"2022-05-19T12:53:41.362Z","1.2.12":"2022-05-19T12:58:21.990Z","1.2.13":"2022-08-05T16:59:38.476Z"},"maintainers":[{"name":"yusufjonnazarov","email":"yusufjon07nazarov@gmail.com"}],"description":"Integration with payme","keywords":["payme","integration","with-mongoose"],"author":{"name":"@yusufjonnazarov"},"license":"ISC","readme":"\n\n# Payme merchant api integration with mongodb database based application\n\n## Author\n- [Yusufjon Nazarov](https://github.com/yusufjonnazarov)\n\n## Install\n```\nnpm install tslib // also to work in javascript\nnpm install payme-merchant-integrator\n```\n\n## Usage\n### Import `PaymeIntegrator` class\n\n```\nimport { PaymeIntegrator } from 'payme-merchant-integrator';\n```\n\n### And initialize `paymeIntegrator` object based class\n```\nconst paymeIntegrator = new PaymeIntegrator({\n    db_str: process.env.MONGODB_URL,\n    collection: 'payme_transactions', // collection name to save transactions\n    type: 'cumulative', // enum ['one-time', 'cumulative'] one time fee or cumulative\n    password: process.env.PAYME_PASSWORD,\n    isAccountExist,\n    markAsPaid,\n    getPayingCost, // optional for 'cumulative' type\n    canCancel, // method to check cancellation\n    markAsCancel, // method to mark as cancel\n})\n```\n\nThere two types of `paymeIntegrator`\n* to pay for balance increase `cumulative` fee\n* to pay for check means `one-time` fee\n\n### And add methods below for `cumulative` fee\nCheck account if exists or not\nargument `account` is an object that created in payme cabinet <br>\nFor example `phone` added to account object like this:\n\n![plot](http://ark-buloq.invan.uz/api/uploads/payme1.png)\n\n\nthen `isAccountExist` method should be\n```\nconst isAccountExist = async (account) => {\n    const is_user_exist = await UserModel.findOne({phone: account.phone});\n    if(!is_user_exist) return false;\n    return true;\n}\n```\n\nTo increase balance after payment\n```\nconst markAsPaid = async (account, amount) => {\n    await UserModel.findOneAndUpdate(\n        {phone: account.phone},\n        { $inc: { balance: amount } }\n    );\n}\n```\n\nTo check cancel after payment\n```\nconst canCancel = async (account) => {\n    return false; // for no cancellation;\n    // or check and return true or false \n}\n```\n\nTo mark as cancel after cancellation\n```\nconst markAsCancel = async (account) => {\n    // write function to update balance or cancel paid transaction \n}\n```\n\n### And add methods below for `one-time` fee\nthen `isAccountExist` method should be\n```\nconst isAccountExist = async (account) => {\n    const is_user_exist = await CheckModel.findOne({check_id: account.check_id});\n    if(!is_user_exist) return false;\n    return true;\n}\n```\n\nTo get get paying cost\n```\nconst getPayingCost = async (account) => {\n    const check = await CheckModel.findOne({check_id: account.check_id});\n    return check.cost;\n}\n```\n\nmark as paid\n```\nconst markAsPaid = async (account, amount) => {\n    await CheckModel.findOneAndUpdate(\n        {check_id: account.check_id},\n        { $set: { paid: true } }\n    );\n}\n```\n\n### Then use from route and middleware\nFastify example\n\n```\nconst authenticate = async (request, reply) => {\n    await paymeIntegrator.authenticate(request, reply);\n}\n\nconst handler = async (request, reply) => {\n    return await paymeIntegrator.handler(request, reply);\n}\nfastify.post(\n    '/payme',\n    { preValidation: [authenticate] },\n    handler\n);\n```\n\nAnd test your endpoint with <a href=\"https://test.paycom.uz\" target=\"_blank\">PaymeTester</a>\n\nOfficial documentation <a href=\"https://developer.help.paycom.uz/ru/metody-merchant-api\" target=\"_blank\">Payme Merchant</a>\n","readmeFilename":"README.md","homepage":"https://github.com/yusufjonnazarov/payme-merchant-integrator#readme","repository":{"url":"git+https://github.com/yusufjonnazarov/payme-merchant-integrator.git"},"bugs":{"url":"https://github.com/yusufjonnazarov/payme-merchant-integrator/issues"}}