{"_id":"2co","_rev":"41-f5a510f39661c142a706b6a7e852af54","name":"2co","dist-tags":{"latest":"0.0.4"},"versions":{"0.0.1":{"name":"2co","version":"0.0.1","keywords":["payments","2checkout","adapter","gateway"],"author":{"url":"https://github.com/biggora/","name":"Aleksej Gordejev","email":"aleksej@gordejev.lv"},"_id":"2co@0.0.1","maintainers":[{"name":"biggora","email":"aleksej@gordejev.lv"}],"homepage":"https://github.com/biggora/2co/","dist":{"shasum":"0e67a85c122344c717441a95ca3314539016da76","tarball":"https://registry.npmjs.org/2co/-/2co-0.0.1.tgz","integrity":"sha512-PfDIpm4JXKLHB8/o8A6rqQfRn/Zx+TpEG0ktISgTXmiszD3Om9ZqCmBP1dbSmUQvZ61XwufxZS1FCZjoxSvmMw==","signatures":[{"sig":"MEUCIQDSPgLEcgfhzmJ/sJlFT7TyD5j1OFv7bV7Cqsz40VkQUAIgdVDAGa3Hwv05244HHp+jc+ET97KOG55GfKJh2NhhV5U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./index.js","engines":{"node":">=0.5"},"_npmUser":{"name":"biggora","email":"aleksej@gordejev.lv"},"deprecated":"This package is no longer supported. Use @biggora/2checkout instead.","repository":{"url":"git://github.com/biggora/2co.git","type":"git"},"_npmVersion":"1.1.0-beta-4","description":"Module that will provide nodejs adapters for 2checkout API payment gateway","directories":{"lib":"lib","test":"test"},"_nodeVersion":"v0.6.6","dependencies":{},"_defaultsLoaded":true,"devDependencies":{},"_engineSupported":true},"0.0.2":{"name":"2co","version":"0.0.2","keywords":["payments","2checkout","adapter","gateway"],"author":{"url":"https://github.com/biggora/","name":"Aleksej Gordejev","email":"aleksej@gordejev.lv"},"_id":"2co@0.0.2","maintainers":[{"name":"biggora","email":"aleksej@gordejev.lv"}],"homepage":"https://github.com/biggora/2co/","dist":{"shasum":"6c3c67b8453fffb4cf3fb1cac63e7f41dd6c10d1","tarball":"https://registry.npmjs.org/2co/-/2co-0.0.2.tgz","integrity":"sha512-0QMj8vT3p39LgDQ+AxzYq21RTZMIMPG8EdhOqq0oJD2ey/WMz83jX1mcW4guKFCDqjfTqw3kMxjxSdF7qzlfAg==","signatures":[{"sig":"MEQCIAoNlLCxprnukuol4K3VdGa5wZnSk2yhnQBibzugRzNWAiAg03C+gCG83y9u0ool/4Al7eIwLZai7zYDbZmHgTIucA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./index.js","engines":{"node":">=0.5"},"_npmUser":{"name":"biggora","email":"aleksej@gordejev.lv"},"deprecated":"This package is no longer supported. Use @biggora/2checkout instead.","repository":{"url":"git://github.com/biggora/2co.git","type":"git"},"_npmVersion":"1.1.0-beta-4","description":"Module that will provide nodejs adapters for 2checkout API payment gateway","directories":{"lib":"lib","tests":"tests"},"_nodeVersion":"v0.6.6","dependencies":{},"_defaultsLoaded":true,"devDependencies":{},"_engineSupported":true},"0.0.3-a":{"name":"2co","version":"0.0.3-a","keywords":["payments","2checkout","adapter","gateway"],"author":{"url":"https://github.com/biggora/","name":"Aleksej Gordejev","email":"aleksej@gordejev.lv"},"_id":"2co@0.0.3-a","maintainers":[{"name":"biggora","email":"aleksej@gordejev.lv"}],"homepage":"https://github.com/biggora/2co/","dist":{"shasum":"3f38358f6b368c38dbe75c12b47ac0f82744cbb9","tarball":"https://registry.npmjs.org/2co/-/2co-0.0.3a.tgz","integrity":"sha512-S/J611NsGcBWC00lXONXB2qQrBsD5t9u4fRGu+RrObaAN7xOVFlw342FcOJfW+cHg57mOJP/50Q+ye9u4enapQ==","signatures":[{"sig":"MEYCIQCnUCapXjBqbWmyae7lN1qLmXtvYUrwnrKbUurbGnGgQAIhANaZVDHUpSMKF+j0p6unq/drYoNBsAZkHkTvinWnA/o9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./index.js","engines":{"node":">=0.5"},"_npmUser":{"name":"biggora","email":"aleksej@gordejev.lv"},"repository":{"url":"git://github.com/biggora/2co.git","type":"git"},"_npmVersion":"1.1.0-beta-4","description":"Module that will provide nodejs adapters for 2checkout API payment gateway","directories":{"lib":"lib","tests":"tests"},"_nodeVersion":"v0.6.6","dependencies":{},"_defaultsLoaded":true,"devDependencies":{},"_engineSupported":true,"deprecated":"This package is no longer supported. Use @biggora/2checkout instead."},"0.0.3-b":{"name":"2co","version":"0.0.3-b","keywords":["payments","2checkout","adapter","gateway"],"author":{"url":"https://github.com/biggora/","name":"Aleksej Gordejev","email":"aleksej@gordejev.lv"},"_id":"2co@0.0.3-b","maintainers":[{"name":"biggora","email":"aleksej@gordejev.lv"}],"homepage":"https://github.com/biggora/2co/","dist":{"shasum":"02780dfa68b55c2ad06211258091d6ac0a6f3a97","tarball":"https://registry.npmjs.org/2co/-/2co-0.0.3b.tgz","integrity":"sha512-qI44LOMDehDUvLrzjL+CvJ3X+WXI1AAHB3TjWfXfPNPSo09+cBkXEnzk1KiuBMuGTomGz94a3gmdJkzvDGHOBg==","signatures":[{"sig":"MEUCIBDwTbss+pwopdaljc2vvqNHDXrPvvjUxe+yqKnO5WBwAiEAlySN1okXzx6NF/gqJ9ysdkNvv0i+VScghBW/HtXx7zw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./index.js","engines":{"node":">=0.5"},"_npmUser":{"name":"biggora","email":"aleksej@gordejev.lv"},"repository":{"url":"git://github.com/biggora/2co.git","type":"git"},"_npmVersion":"1.1.0-beta-4","description":"Module that will provide nodejs adapters for 2checkout API payment gateway","directories":{"lib":"lib","tests":"tests"},"_nodeVersion":"v0.6.6","dependencies":{},"_defaultsLoaded":true,"devDependencies":{},"_engineSupported":true,"deprecated":"This package is no longer supported. Use @biggora/2checkout instead."},"0.0.3-c":{"name":"2co","version":"0.0.3-c","keywords":["payments","2checkout","adapter","gateway"],"author":{"url":"https://github.com/biggora/","name":"Aleksej Gordejev","email":"aleksej@gordejev.lv"},"_id":"2co@0.0.3-c","maintainers":[{"name":"biggora","email":"aleksej@gordejev.lv"}],"homepage":"https://github.com/biggora/2co/","dist":{"shasum":"1051c9e385911e927d06a9b27d6b938f22a3b1d4","tarball":"https://registry.npmjs.org/2co/-/2co-0.0.3c.tgz","integrity":"sha512-2xfu0IYqJgrXYgEiGveqokg7/0rpicKk69B1knicV4Il4z6K9Ep47ca3Qocd58I11cLKBLgs7bNrLKJ4gnQLVA==","signatures":[{"sig":"MEUCIQCoCYGLc+KYn3ql1SaMGBZxJsa4AIl1NznJG7dtZFIrIgIgIWM3IR2B2EAtYrnK8Gmgl2NiS45McJy7S4mq9wTDeg4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./index.js","engines":{"node":">=0.5"},"_npmUser":{"name":"biggora","email":"aleksej@gordejev.lv"},"repository":{"url":"git://github.com/biggora/2co.git","type":"git"},"_npmVersion":"1.1.0-beta-4","description":"Module that will provide nodejs adapters for 2checkout API payment gateway","directories":{"lib":"lib","tests":"tests"},"_nodeVersion":"v0.6.6","dependencies":{},"_defaultsLoaded":true,"devDependencies":{},"_engineSupported":true,"deprecated":"This package is no longer supported. Use @biggora/2checkout instead."},"0.0.3-d":{"name":"2co","version":"0.0.3-d","keywords":["payments","2checkout","adapter","gateway"],"author":{"url":"https://github.com/biggora/","name":"Aleksej Gordejev","email":"aleksej@gordejev.lv"},"_id":"2co@0.0.3-d","maintainers":[{"name":"biggora","email":"aleksej@gordejev.lv"}],"homepage":"https://github.com/biggora/2co/","dist":{"shasum":"5571396a65bba6b6e741c5645cabb961bc3ca988","tarball":"https://registry.npmjs.org/2co/-/2co-0.0.3d.tgz","integrity":"sha512-1tbBE5v6zT0i0mnkYNKbeD62bFKKRgieeO7ZrvQC4Z2jHG/1VSWpRv0loNRBZbSLfZsc13kkkHupWq/Yp9sBcw==","signatures":[{"sig":"MEUCIQDAwjBLrBv/5IfKZusHoen7+rzxJHwvxUAdo7CO4DMLZgIgPbCK4cY/BXjjttjGptrQb48NRLp2vQBpCWkvNHSFJho=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./index.js","engines":{"node":">=0.5"},"_npmUser":{"name":"biggora","email":"aleksej@gordejev.lv"},"repository":{"url":"git://github.com/biggora/2co.git","type":"git"},"_npmVersion":"1.1.0-beta-4","description":"Module that will provide nodejs adapters for 2checkout API payment gateway","directories":{"lib":"lib","tests":"tests"},"_nodeVersion":"v0.6.6","dependencies":{},"_defaultsLoaded":true,"devDependencies":{},"_engineSupported":true,"deprecated":"This package is no longer supported. Use @biggora/2checkout instead."},"0.0.3-e":{"name":"2co","version":"0.0.3-e","keywords":["payments","2checkout","adapter","gateway"],"author":{"url":"https://github.com/biggora/","name":"Aleksej Gordejev","email":"aleksej@gordejev.lv"},"_id":"2co@0.0.3-e","maintainers":[{"name":"biggora","email":"aleksej@gordejev.lv"}],"homepage":"https://github.com/biggora/2co/","dist":{"shasum":"9f339f6147cc83d532e276b24d290958b2b6a0d9","tarball":"https://registry.npmjs.org/2co/-/2co-0.0.3e.tgz","integrity":"sha512-ZybNEdLp+KjdTFqraeGQSkIS/961l/WNKjNErOZuHCDO2FOXu/r/bLlHRAF5mtweQz3ivTAJtHspM0bTMydOVA==","signatures":[{"sig":"MEUCIBKGSodprTBBMnlbpkEP0nep7r++b4G7FZQB85kmDqcpAiEA8022q9GrI3QUSAfFc71hRpnltsNdGy5Z5rWrpE5tkVo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./index.js","engines":{"node":">=0.5"},"_npmUser":{"name":"biggora","email":"aleksej@gordejev.lv"},"repository":{"url":"git://github.com/biggora/2co.git","type":"git"},"_npmVersion":"1.1.0-beta-4","description":"Module that will provide nodejs adapters for 2checkout API payment gateway","directories":{"lib":"lib","tests":"tests"},"_nodeVersion":"v0.6.6","dependencies":{},"_defaultsLoaded":true,"devDependencies":{},"_engineSupported":true,"deprecated":"This package is no longer supported. Use @biggora/2checkout instead."},"0.0.3-f":{"name":"2co","version":"0.0.3-f","keywords":["payments","2checkout","adapter","gateway"],"author":{"url":"https://github.com/biggora/","name":"Aleksej Gordejev","email":"aleksej@gordejev.lv"},"_id":"2co@0.0.3-f","maintainers":[{"name":"biggora","email":"aleksej@gordejev.lv"}],"homepage":"https://github.com/biggora/2co/","dist":{"shasum":"47fe30ef48ab3eb8f238c4aa0ae2564dc3e9c376","tarball":"https://registry.npmjs.org/2co/-/2co-0.0.3f.tgz","integrity":"sha512-UDNNr75Z3ELUJ978u1xfcKUM6LaiQuhdajTyzvEP9hrT4pRBscXtSfbzD2Wh+xwfqAwXgk8wDzqDqKmKz+nSMg==","signatures":[{"sig":"MEUCIQDT/F9wEdpru/04eqJH4P+IE560XblIeKcWfllUhKlwWgIgLyT/Tqdm9GxnYPorU0CI4jKCxqgH9irfanX34eXNgsM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./index.js","engines":{"node":">=0.5"},"_npmUser":{"name":"biggora","email":"aleksej@gordejev.lv"},"repository":{"url":"git://github.com/biggora/2co.git","type":"git"},"_npmVersion":"1.1.12","description":"Module that will provide nodejs adapters for 2checkout API payment gateway","directories":{"lib":"lib","tests":"tests"},"_nodeVersion":"v0.6.14","dependencies":{},"_defaultsLoaded":true,"devDependencies":{},"_engineSupported":true,"optionalDependencies":{},"deprecated":"This package is no longer supported. Use @biggora/2checkout instead."},"0.0.4":{"name":"2co","version":"0.0.4","keywords":["payments","2checkout","adapter","gateway"],"author":{"url":"https://github.com/biggora/","name":"Aleksej Gordejev","email":"aleksej@gordejev.lv"},"_id":"2co@0.0.4","maintainers":[{"name":"biggora","email":"aleksej@gordejev.lv"}],"homepage":"https://github.com/biggora/2co/","bugs":{"url":"https://github.com/biggora/2co/issues"},"dist":{"shasum":"6221d5fe124c1def8c0edbf5032524861b2bff8b","tarball":"https://registry.npmjs.org/2co/-/2co-0.0.4.tgz","integrity":"sha512-Q2FJlR8oma/EirnaC19XZbK14e31K72oJIu0XKkqcEU4V8MIJR7z7LhK6F/cI5PThvwHCFpQgNdfGHBsPg8UBg==","signatures":[{"sig":"MEQCIE83/dmu3YhPym1LI48DERoSoaoxsLk+JnCVWVaFqP0RAiBDYMnIcb1ZhVIjy3laqL+S/7BK4pm+Glh5V8Nm6Cqm3A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./index.js","_from":".","engines":{"node":">=0.6"},"scripts":{"test":"nodeunit tests/all_test.js"},"_npmUser":{"name":"biggora","email":"aleksej@gordejev.lv"},"deprecated":"This package is no longer supported. Use @biggora/2checkout instead.","repository":{"url":"git://github.com/biggora/2co.git","type":"git"},"_npmVersion":"1.3.8","description":"Module that will provide nodejs adapters for 2checkout API payment gateway","directories":{"lib":"lib","tests":"tests"},"dependencies":{},"devDependencies":{"express":">= 4.0.0","nodeunit":">= 0.6.4","body-parser":"*","cookie-parser":"*","express-session":"*","method-override":"*"}}},"time":{"created":"2012-03-17T18:04:44.765Z","modified":"2026-05-18T18:53:24.875Z","0.0.1":"2012-03-17T18:04:47.520Z","0.0.2":"2012-03-17T20:40:55.814Z","0.0.3-a":"2012-03-18T10:05:50.018Z","0.0.3-b":"2012-03-18T13:18:46.051Z","0.0.3-c":"2012-03-18T13:25:39.669Z","0.0.3-d":"2012-03-18T15:45:41.276Z","0.0.3-e":"2012-03-24T17:05:56.997Z","0.0.3-f":"2012-04-02T10:44:57.138Z","0.0.4":"2014-04-21T14:31:49.210Z"},"bugs":{"url":"https://github.com/biggora/2co/issues"},"author":{"url":"https://github.com/biggora/","name":"Aleksej Gordejev","email":"aleksej@gordejev.lv"},"homepage":"https://github.com/biggora/2co/","keywords":["payments","2checkout","adapter","gateway"],"repository":{"url":"git://github.com/biggora/2co.git","type":"git"},"description":"Module that will provide nodejs adapters for 2checkout API payment gateway","maintainers":[{"name":"biggora","email":"aleksej@gordejev.lv"}],"readme":"[![build status](https://secure.travis-ci.org/biggora/2co.png)](http://travis-ci.org/biggora/2co)\n# 2CO\n2CO is the module that will provide [nodejs](http://nodejs.org/)\nadapters for [2checkout](http://www.2checkout.com/documentation/api/) [API](http://www.2checkout.com/documentation/api/) payment gateway.\n\n## Installation\n\nInstallation is done using the Node Package Manager (npm). If you don't have npm installed on your system you can download it from [npmjs.org](http://npmjs.org/).\nTo install 2co:\n\n    $ npm install -g 2co\n\n## Usage overview\n\n### Example\n\nThe list_products call is used to retrieve list of all products in account.\n\n    var checkout = require('2co');\n\n    /* Filter list results on vendor product ID. Optional. */\n    var product = {\n         vendor_product_id:'your product id'\n    };\n\n    checkout.setAuth('USERNAME','PASSWORD');\n    /* list_products method */\n    checkout.exec('list_products',product);\n\n    checkout.on('data',function(data){\n       console.log(data);\n    });\n\n    checkout.on('error',function(error){\n       console.log(error);\n    });\n\n### Instant Notification System\nfor Express:\n\n    var checkout = require('2co'),\n    express = require('express'),\n    app = express(),\n    host = 'localhost',\n    port = 3000;\n\n    // for express < 4 uncomment\n    // app.use(app.router);  \n\n    checkout\n         .notificationRoute('/notifications') // default route '/payments/2co/notifications'\n         .fetchNotification(function(data,res){\n                res.send(data);\n         })\n         .notificationHelper(app);\n\n    app.listen(port,host);\n\n### Handling Approved URL\nfor Express:\n\n    /* Callbacks if an order is immediately approved */\n    checkout\n          .scriptRoute('/2co/:pid?')  // default route '/payments/2co/callback/:pid?'\n          .scriptCallback(function(pid,data,res){\n                 res.send(data);\n          })\n          .scriptHelper(app);\n\n\n## In the Wild\n\nThe following projects use 2co.\n\nIf you are using 2co in a project, app, or module, get on the list below\nby getting in touch or submitting a pull request with changes to the README.\n\n### Startups & Apps\n\n- [TViMama](http://tvimama.com/)\n- [GorkaTV](https://gorkatv.com/)\n\n\n### Recommend extensions\n\n- [Bootstrap Fancy File Plugin](http://biggora.github.io/bootstrap-fancyfile/)\n- [Bootstrap Ajax Typeahead Plugin](https://github.com/biggora/bootstrap-ajax-typeahead)\n- [TrinteJS - Javascrpt MVC Framework for Node.JS](http://www.trintejs.com/)\n- [CaminteJS - Cross-db ORM for NodeJS](http://www.camintejs.com/)\n- [MongoDB Session Storage for ExpressJS](https://github.com/biggora/express-mongodb)\n- [Middleware exposing user-agent for NodeJS](https://github.com/biggora/express-useragent)\n\n\n## Author\n\nAleksej Gordejev (aleksej@gordejev.lv). Development was sponsored by [Etvnet](http://etvnet.com/).\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2012 Aleksej Gordejev <aleksej@gordejev.lv>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n## Resources\n\n- Visit the [author website](http://www.gordejev.lv).\n- Follow [@biggora](https://twitter.com/#!/biggora) on Twitter for updates.\n- Report issues on the [github issues](https://github.com/biggora/2co/issues) page.\n\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/biggora/2co/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n\n","readmeFilename":"README.md","users":{"biggora":true,"mgequivalents":true}}