{"_id":"@dallotech/nestjs-esewa","_rev":"4-6f5d9a823d9e25a643135aad14323e82","name":"@dallotech/nestjs-esewa","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.2":{"name":"@dallotech/nestjs-esewa","version":"0.0.2","description":"This is simple wrapper for Esewa Payment. It supports Epay-V2 and transaction verification for Esewa SDK, but later more will be added. Just ping us or open pull request and contribute :)","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rimraf dist && tsc","prepublish":"npm run build"},"keywords":["nestjs","esewa","api","dallotech"],"author":{"name":"Dallo Tech Pvt. Ltd."},"license":"MIT","devDependencies":{"@nestjs/axios":"^3.0.0","@nestjs/common":"^10.2.7","@types/node":"^20.8.6","rimraf":"^5.0.5","rxjs":"^7.8.1","crypto-js":"^4.1.1"},"gitHead":"9758bcb5338904cc28f3bbcde6fa8aad252e56ad","_id":"@dallotech/nestjs-esewa@0.0.2","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-ccZKcSfWeYG3xdkUdHSZ6glLtgeBFRd6wo5WYZ+SsWfZKTQYC+VHA6AP/3rOQijDuE9kQ49ljDVufdPpKuzsIw==","shasum":"780a71d510f3231f6085385c7a44210a475b11b9","tarball":"https://registry.npmjs.org/@dallotech/nestjs-esewa/-/nestjs-esewa-0.0.2.tgz","fileCount":8,"unpackedSize":16362,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxpk+yFid3LjM2F0t0jQxueq5ECLrBnByOJRbttyDCXwIgSa+zu8hiK4m8TEV8lLn75paPDKuztpEMab/F185VxXo="}]},"_npmUser":{"name":"sagarsishir51","email":"sagar.sishir51@gmail.com"},"directories":{},"maintainers":[{"name":"sagarsishir51","email":"sagar.sishir51@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-esewa_0.0.2_1699336844602_0.9058904722731917"},"_hasShrinkwrap":false},"0.0.3":{"name":"@dallotech/nestjs-esewa","version":"0.0.3","description":"This is simple wrapper for Esewa Payment. It supports Epay-V2 and transaction verification for Esewa SDK, but later more will be added. Just ping us or open pull request and contribute :)","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rimraf dist && tsc","prepublish":"npm run build"},"keywords":["nestjs","esewa","api","dallotech"],"author":{"name":"Dallo Tech Pvt. Ltd."},"license":"MIT","devDependencies":{"@nestjs/axios":"^3.0.0","@nestjs/common":"^10.2.7","@types/node":"^20.8.6","rimraf":"^5.0.5","rxjs":"^7.8.1","crypto-js":"^4.1.1"},"gitHead":"375dc1c085135ee0e44dd78cfdb99f14b761bac7","_id":"@dallotech/nestjs-esewa@0.0.3","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-Tnc/qevWp9RI36/jm202skFBAjWfAYP2UeTOeOSrwyx+YzytXmKpSNcZZnO6Lp3c4wWcGxb5jYeZT7b3eD1Jpw==","shasum":"a1c78eaa2a5239a4b01fcb455845fc39563a2b39","tarball":"https://registry.npmjs.org/@dallotech/nestjs-esewa/-/nestjs-esewa-0.0.3.tgz","fileCount":24,"unpackedSize":40276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2tqCfPe5SNAI9qDpfTiy7PIXlW2pL8wjX7KwIZqHA2gIhAOZYaIJEiqtnqGuxkMcreUAmZMRVVZSrbEWdXOdMysls"}]},"_npmUser":{"name":"sagarsishir51","email":"sagar.sishir51@gmail.com"},"directories":{},"maintainers":[{"name":"sagarsishir51","email":"sagar.sishir51@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-esewa_0.0.3_1699337841034_0.3042240899647497"},"_hasShrinkwrap":false},"0.0.4":{"name":"@dallotech/nestjs-esewa","version":"0.0.4","description":"This is simple wrapper for Esewa Payment. It supports Epay-V2 and transaction verification for Esewa SDK, but later more will be added. Just ping us or open pull request and contribute :)","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rimraf dist && tsc","prepublish":"npm run build"},"keywords":["nestjs","esewa","api","dallotech"],"author":{"name":"Dallo Tech Pvt. Ltd."},"license":"MIT","devDependencies":{"@nestjs/axios":"^3.0.0","@nestjs/common":"^10.2.7","@types/node":"^20.8.6","rimraf":"^5.0.5","rxjs":"^7.8.1","crypto-js":"^4.1.1"},"gitHead":"6c18043d7846ef87a4b9504ba7a8cf6e4ca3d6c0","_id":"@dallotech/nestjs-esewa@0.0.4","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-wnMpIYEips6GhRZDODV1CXneCoUVk2uZ6eIuin5edyh+93+0dZfpSuVFhoPQD4iSUef9qN+VmnMjHYIEKPV/Pg==","shasum":"ca691f8c51ab4414997ce350797ccbdf108bd5b4","tarball":"https://registry.npmjs.org/@dallotech/nestjs-esewa/-/nestjs-esewa-0.0.4.tgz","fileCount":24,"unpackedSize":40264,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUxEFab6m5dx8UgTKNdTRR8vlwAta8BKdEE7njKfXVnwIhAOM5aFJ2rmu4pNXRED0Qgh1VW+JPBg8WoBmIcu3q64YW"}]},"_npmUser":{"name":"sagarsishir51","email":"sagar.sishir51@gmail.com"},"directories":{},"maintainers":[{"name":"sagarsishir51","email":"sagar.sishir51@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-esewa_0.0.4_1699521194408_0.6782922137484906"},"_hasShrinkwrap":false},"0.0.5":{"name":"@dallotech/nestjs-esewa","version":"0.0.5","description":"This is simple wrapper for Esewa Payment. It supports Epay-V2 and transaction verification for Esewa SDK, but later more will be added. Just ping us or open pull request and contribute :)","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"rimraf dist && tsc","test":"jest --detectOpenHandles","prepublish":"npm run build"},"keywords":["nestjs","esewa","api","dallotech"],"author":{"name":"Dallo Tech Pvt. Ltd."},"license":"MIT","devDependencies":{"@nestjs/axios":"^3.0.0","@nestjs/common":"^10.2.7","@nestjs/testing":"^10.3.8","@types/jest":"^29.5.12","@types/node":"^20.8.6","crypto-js":"^4.1.1","jest":"^29.7.0","rimraf":"^5.0.5","rxjs":"^7.8.1","ts-jest":"^29.1.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"gitHead":"66ee188e5b95b76c82ae11f8931426b9c5d50461","_id":"@dallotech/nestjs-esewa@0.0.5","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-+ClDc4H4zNjZpnnzhHgFknYNx9p3ZB78GRnRZNJykKZ2LLGBC0v0NT9basxEtp95mC/w6G9NjMuFFRG5BVidyA==","shasum":"9686e3ab66dd3bd843ae9f91349cd9ce66c8e7b2","tarball":"https://registry.npmjs.org/@dallotech/nestjs-esewa/-/nestjs-esewa-0.0.5.tgz","fileCount":25,"unpackedSize":43994,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFhN2AoXbB6tIeKnEYQ5HkgW61P57iSGux1XEEly8K6QIhALIdQc5f28SQSQvmdj6LCPAqXGkz3XhMv1ie0NMUi5tr"}]},"_npmUser":{"name":"sagarsishir51","email":"sagar.sishir51@gmail.com"},"directories":{},"maintainers":[{"name":"sagarsishir51","email":"sagar.sishir51@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-esewa_0.0.5_1713525152793_0.39200216412719135"},"_hasShrinkwrap":false},"0.0.6":{"name":"@dallotech/nestjs-esewa","version":"0.0.6","description":"This is simple wrapper for Esewa Payment. It supports Epay-V2 and transaction verification for Esewa SDK, but later more will be added. Just ping us or open pull request and contribute :)","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"rimraf dist && tsc","test":"jest --detectOpenHandles","prepublish":"npm run build"},"keywords":["nestjs","esewa","api","dallotech"],"author":{"name":"Dallo Tech Pvt. Ltd."},"license":"MIT","devDependencies":{"@nestjs/axios":"^3.0.0","@nestjs/common":"^10.2.7","@nestjs/testing":"^10.3.8","@types/jest":"^29.5.12","@types/node":"^20.8.6","crypto-js":"^4.1.1","jest":"^29.7.0","rimraf":"^5.0.5","rxjs":"^7.8.1","ts-jest":"^29.1.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"gitHead":"58f7d423cc5bd4a18ce4564af2b743eecf7d7cbd","_id":"@dallotech/nestjs-esewa@0.0.6","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-3rZNoqFzbH/sh2SpjPgoI7OCuAsfXdloxw6fvxtGX/fAZtko8VMNUXQdKLpdgfqqaqNdZXmoJK7mjhfr39EQIg==","shasum":"41e550edb969f2d696bbd45fde46aed1b5d86c7b","tarball":"https://registry.npmjs.org/@dallotech/nestjs-esewa/-/nestjs-esewa-0.0.6.tgz","fileCount":25,"unpackedSize":43991,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID6aW+4XW/4RDiQ8eFH1b5XayYKyI1SFZRJcC7jCAtp9AiEAp/AXhvkgwYhw1gpbc9f2vx+C1nLbKsjjji0VvB/K5NA="}]},"_npmUser":{"name":"sagarsishir51","email":"sagar.sishir51@gmail.com"},"directories":{},"maintainers":[{"name":"sagarsishir51","email":"sagar.sishir51@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-esewa_0.0.6_1713531784357_0.5368439550379591"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-07T06:00:44.500Z","0.0.2":"2023-11-07T06:00:44.795Z","modified":"2024-04-19T13:03:04.874Z","0.0.3":"2023-11-07T06:17:21.270Z","0.0.4":"2023-11-09T09:13:14.597Z","0.0.5":"2024-04-19T11:12:32.954Z","0.0.6":"2024-04-19T13:03:04.609Z"},"maintainers":[{"name":"sagarsishir51","email":"sagar.sishir51@gmail.com"}],"description":"This is simple wrapper for Esewa Payment. It supports Epay-V2 and transaction verification for Esewa SDK, but later more will be added. Just ping us or open pull request and contribute :)","keywords":["nestjs","esewa","api","dallotech"],"author":{"name":"Dallo Tech Pvt. Ltd."},"license":"MIT","readme":"## Introduction\nThis is simple wrapper for Esewa Payment. It supports Epay-V2 and transaction verification for Esewa SDK, but later more will be added. Just ping us or open pull request and contribute :)\n## Installation\n\n```bash\n$ npm i --save @dallotech/nestjs-esewa \n$ yarn add @dallotech/nestjs-esewa \n```\n\n#### Importing module Async\n\n```typescript\nimport { EsewaModule } from '@dallotech/nestjs-esewa';\n@Module({\n  imports: [\n      EsewaModule.registerAsync({\n          imports: [ConfigModule],\n          inject: [ConfigService],\n          useFactory: (configService: ConfigService<AllConfig>) => ({\n              productCode: configService.get(\"----your key-----\", {infer: true}),\n              paymentMode: configService.get(\"----your key-----\", {infer: true}),\n              secretKey: configService.get(\"----your key-----\", {infer: true}),\n              merchantId: configService.get(\"----your key-----\", {infer: true}),\n              merchantSecret: configService.get(\"----your key-----\", {infer: true}),\n          })\n      }),\n  ],\n  providers: [],\n  exports: [],\n})\nexport class YourModule {}\n```\n#### Calling Init Method to initialize payment\n\n```typescript\nimport { EsewaService,EsewaRequestDto } from '@dallotech/nestjs-esewa';\n\n@Injectable()\nexport class YourService {\n  constructor(private esewaService: EsewaService) {}\n    \n    async initPayment(){\n        //...your code\n        const esewaRequestDto: EsewaRequestDto = {\n            amount: 10,\n            productServiceCharge: 0,\n            productDeliveryCharge: 0,\n            taxAmount: 0,\n            totalAmount: 10,\n            transactionUuid: 'random uuid of txn',\n            successUrl: 'success return url of frontend',\n            failureUrl: 'failure return url of frontend'\n        };\n        const initData = await this.esewaService.init(esewaRequestDto);\n        //...use initData where required as use case\n    \n  }\n}\n```\n\n#### Calling Verify Method for Epay-V2\n\n```typescript\nimport { EsewaService } from '@dallotech/nestjs-esewa';\n\n@Injectable()\nexport class YourService {\n  constructor(private esewaService: EsewaService) {}\n    \n    async verifyPayment(data){\n        //...your code\n        const {encodedData} = data;\n        const response = await this.esewaService.verify({encodedData});\n        //..your code can verify the response data with your business logic and response format\n  }\n}\n```\n\n#### Calling Verify Method for Esewa SDK\n\n```typescript\nimport { EsewaService,SparrowSmsRequestDto } from '@dallotech/nestjs-esewa';\n\n@Injectable()\nexport class YourService {\n  constructor(private esewaService: EsewaService) {}\n    \n    async verifyPayment(data){\n        //...your code\n        const {refId} = data;\n        const response = await this.esewaService.verifyMobile({refId});\n        //..your code can verify the response data with your business logic and response format\n  }\n}\n```\n\n## License\n\nThis package is MIT licensed.\n","readmeFilename":"README.md"}