{"_id":"@cognifit/cordova-plugin-purchase","_rev":"6-13b365da6bf9a790c084c8e913688fc1","name":"@cognifit/cordova-plugin-purchase","dist-tags":{"latest":"10.0.1","lib3":"10.3.0"},"versions":{"10.0.1":{"name":"@cognifit/cordova-plugin-purchase","version":"10.0.1","description":"CogniFit's fork of cordova-plugin-purchase.\nCordova Purchase plugin for iOS, Android, Windows (AppStore, Play, UWP)","cordova":{"id":"cordova-plugin-purchase","platforms":["android","ios","wp8"]},"repository":{"type":"git","url":"git+https://github.com/cognifit/cordova-plugin-purchase.git"},"keywords":["ecosystem:cordova","cordova-android","cordova-ios","cordova-windows","cordova","phonegap","purchase","storekit","ios","android","play","appstore"],"scripts":{"test":"make test-js","coverage":"make test-js-coverage"},"author":{"name":"Jean-Christophe Hoelt","email":"hoelt@fovea.cc"},"license":"MIT","bugs":{"url":"https://github.com/cognifit/cordova-plugin-purchase/issues"},"homepage":"https://github.com/cognifit/cordova-plugin-purchase","devDependencies":{"acorn":"^6.3.0","babel-eslint":"^10.0.3","coveralls":"^3.0.6","eslint":"^5.16.0","eslint-config-defaults":"^9.0.0","eslint-plugin-import":"^2.18.2","eslint-plugin-react":"^7.14.3","istanbul":"^0.4.5","jshint":"^2.10.2","mocha":"^6.2.0","preprocessor":"^1.4.0","uglify-js":"^3.6.0"},"types":"./src/js/index.d.ts","gitHead":"2778119e54294ac14d07a2d17d51e7570069e607","_id":"@cognifit/cordova-plugin-purchase@10.0.1","_nodeVersion":"15.4.0","_npmVersion":"7.2.0","dist":{"integrity":"sha512-b8ykd1g6+HSW5/Op44SLER7Ogewnb7Kvd6FN6volG04oLljXl0xhDemK2I/HDk8kQO4yqRkgiEWPZ9MCe2PyOQ==","shasum":"5e137b495089a4c1b19068be6b1253a988525a3d","tarball":"https://registry.npmjs.org/@cognifit/cordova-plugin-purchase/-/cordova-plugin-purchase-10.0.1.tgz","fileCount":94,"unpackedSize":978720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf6dinCRA9TVsSAnZWagAAZhwP/1HTYMegh49DF3OREAh3\nD2Y06/Nw3QC1mrO4LpsKzYDeSkvRxNbUVvLEt/DaCt5+KPkbsypHAIYnXp++\nhisyA9aqWoXRsn9B3d8ygYF58HLheE6LRnqSq2N4q7nKblciFo5R/AL+lEuk\nHxfU7dAB/IXc1rO98WcQ7uh7n4wm91mhcWJwUbaCc2/S24QKX4gX6N/9iRvC\nuDIi5c5psLtXFe9a1HyGdn6moRq8t1MUXoL9tRglHIz3ODUHE/gpsnEH0LoO\nf8iPkB962sq++fQ01KU6uY29m+7wx+RFWBW0RdGpSm+ctAACUkxhdMXStLgG\nR8OxNjsONjTYFJsMzlFD5ini0zsJHoz2Lu6vxd8Jyvb81B+Jiavpa1mCScAP\nzHNGpvIC+J6gUEuCVXeDu3K18wYSOJh3N/Kpzbk5AI8P6XvGbhswhlB+PBMK\nXtcUgQ8Y1J1m7LazIhDVh3s9MKIjHLc3mYn+Hn0mpvmLnWAduJe3888lKNfe\nMbI0PTeUU1qqlHI7OOClrS5+a9WH0/nhRUyh00QnObOYaKRMd+SlXCNKl3V6\n2b523ESfGRgUTKEheo97hm0FKE++Lpyhx38407fGFAr8XUJuE/EuiPKX4ynI\nKYOjJkg6Md/Y9hlG6K3x+sadlFl2lePVXy35sZvavhVYjqYZcIxUrthxJMM8\nzON1\r\n=1i9j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDfSwEF38SQ/HCDoyO3+4K8GkOC4KhBLW8NPhUJMWyEmgIgMXSW4oNJRpBCEQlR34xThRmVJf91qZLMeuj9lc7qgPc="}]},"_npmUser":{"name":"pgutierrez_cf","email":"p.gutierrez@cognifit.com"},"directories":{},"maintainers":[{"name":"pgutierrez_cf","email":"p.gutierrez@cognifit.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cordova-plugin-purchase_10.0.1_1609160870568_0.005001990045540028"},"_hasShrinkwrap":false},"10.3.0":{"name":"@cognifit/cordova-plugin-purchase","version":"10.3.0","description":"CogniFit's fork of cordova-plugin-purchase.\nCordova Purchase plugin for iOS, Android, Windows (AppStore, Play, UWP)","cordova":{"id":"cordova-plugin-purchase","platforms":["android","ios","wp8"]},"repository":{"type":"git","url":"git+https://github.com/cognifit/cordova-plugin-purchase.git"},"keywords":["ecosystem:cordova","cordova-android","cordova-ios","cordova-windows","cordova","phonegap","purchase","storekit","ios","android","play","appstore"],"scripts":{"test":"make test-js","coverage":"make test-js-coverage"},"author":{"name":"Jean-Christophe Hoelt","email":"hoelt@fovea.cc"},"license":"MIT","bugs":{"url":"https://github.com/cognifit/cordova-plugin-purchase/issues"},"homepage":"https://github.com/cognifit/cordova-plugin-purchase","devDependencies":{"acorn":"^6.3.0","babel-eslint":"^10.0.3","coveralls":"^3.0.6","eslint":"^5.16.0","eslint-config-defaults":"^9.0.0","eslint-plugin-import":"^2.18.2","eslint-plugin-react":"^7.14.3","istanbul":"^0.4.5","jshint":"^2.10.2","mocha":"^6.2.0","preprocessor":"^1.4.0","uglify-js":"^3.6.0"},"types":"./src/js/index.d.ts","readme":"# Cordova Purchase Plugin\n\n> In-App Purchases for Cordova\n\n[![Build Status](https://travis-ci.org/j3k0/cordova-plugin-purchase.svg)](https://travis-ci.org/j3k0/cordova-plugin-purchase)\n\n---\n\nNeed professional help and support? [Contact Me](mailto:hoelt@fovea.cc).\n\nI dedicate a considerable amount of my free time to developing and maintaining\nthis Cordova plugin, along with my other Open Source software. To help ensure\nthis plugin is kept updated, new features are added and bugfixes are\nimplemented quickly, please donate a couple of dollars (or a little more if you\ncan stretch) as this will help me to afford to dedicate time to its\nmaintenance. Please consider donating if you're using this plugin in an app\nthat makes you money, if you're being paid to make the app, if you're asking\nfor new features or priority bug fixes. Thank you!\n\n * [Patreon](https://www.patreon.com/join/2219243?)\n * [PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7A4826SH6RJSE&source=url)\n\n## Summary\n\nThis plugin allows **In-App Purchases** to be made from **Cordova, PhoneGap and Ionic** applications.\n\nIt lets you handle in-app purchases on many platforms with a single codebase.\n\n### Features\n\n|  | ios | android | win-8 | win-10/uwp | mac |\n|--|--|--|--|--|--|\n| consumables | ✅ | ✅ | ✅ | ✅ | ✅ |\n| non consumables | ✅ | ✅ | ✅ | ✅ | ✅ |\n| subscriptions | ✅ | ✅ | ✅ | ✅ | ✅ |\n| restore purchases | ✅ | ✅ | ✅ | ✅ | ✅ |\n| [receipt validations](https://billing.fovea.cc) | ✅ | ✅ |  | ✅ | ✅ |\n| downloadable content | ✅ |   |   |   | ✅ |\n| introductory prices | ✅ | ✅ |   | ✅ | ✅ |\n\n### Supported platforms\n\n - **iOS** version 6.0 or higher.\n - **Android** version 2.2 (API level 8) or higher\n   - with Google Play client version 3.9.16 or higher\n - **Windows** Store/Phone 8.1 or higher\n - **Windows 10 Mobile**\n - **macOS** version 10\n - **Xbox One**\n   - (and any platform supporting Microsoft's UWP)\n\n\n## Installation\n\n### Install the plugin (Cordova)\n\n```sh\ncordova plugin add cordova-plugin-purchase\n```\n\n### Install the plugin (PhoneGap)\n\nAdd the following to your `config.xml` file:\n\n```xml\n<gap:plugin name=\"cordova-plugin-purchase\" source=\"npm\" version=\"9.0.0\"></gap:plugin>\n```\n\n### Install recommended plugins\n\n<details>\n<summary>\nInstall <strong>cordova-plugin-network-information</strong> (click for details).\n</summary>\n\n\nSometimes, the plugin cannot connect to the app store because it has no network connection. It will then retry either:\n\n* periodically after a certain amount of time;\n* when the device fires an ['online'](https://developer.mozilla.org/en-US/docs/Web/Events/online) event.\n\nThe [cordova-plugin-network-information](https://github.com/apache/cordova-plugin-network-information) plugin is required in order for the `'online'` event to be properly received in the Cordova application. Without it, this plugin will only be able to use the periodic check to determine if the device is back online.\n\n</details>\n\n### Setup your Application\n\nSee [Setup iOS Applications](https://github.com/j3k0/cordova-plugin-purchase/wiki/Setup-for-iOS-and-macOS#setup-ios-applications) and [Setup Android Applications](https://github.com/j3k0/cordova-plugin-purchase/wiki/Setup-for-Android-Google-Play#setup-android-applications).\n\n## Getting Started\n\nIf you don't know much about In-App Purchases, you'll find a good overview\non the subject from those guys:\n\n* Apple:\n   * [In-App Purchase Introduction](https://developer.apple.com/in-app-purchase/)\n   * [Auto-Renewable Subscriptions](https://developer.apple.com/app-store/subscriptions)\n* Google:\n   * [In-App Purchases Best Practices](https://developer.android.com/distribute/best-practices/earn/in-app-purchases)\n   * [Billing Overview](https://developer.android.com/google/play/billing/billing_overview)\n* Microsoft\n  * [Monetize with In-App Purchases](https://docs.microsoft.com/en-us/windows/uwp/monetize/in-app-purchases-and-trials)\n\nThey all share the same concepts, so they are a good reads in all cases, with some advice that apply to all platforms.\n\nTo ease the beggining of your journey into the intimidating world of In-App Purchase with Cordova, we wrote a guide which hopefully will help you get things done: https://purchase.cordova.fovea.cc/\n\nIn short, you'll have two main tasks to accomplish:\n\n 1. Setup your application and In-App Products on AppStore, Play or Azure platforms using their respective web interfaces.\n 2. Add In-App Purchase code to your application.\n\nFor platform setup, the [wiki](https://github.com/j3k0/cordova-plugin-purchase/wiki/Home) contains good information.\n\nFor the code itself, the [API Documentation](doc/api.md) is a definitely a recommended read.\n\n## Documentation\n\n - [Guide](https://purchase.cordova.fovea.cc/)\n - [API Documentation](doc/api.md)\n - [Documentation for iOS](doc/ios.md)\n - [Documentation for Android](doc/android.md)\n - [Documentation for Windows](doc/windows.md)\n\n## Extra Resources\n\n### For iOS\n\n - [In-App Purchase Configuration Guide for AppStore Connect](https://developer.apple.com/support/app-store-connect/)\n   - Learn how to set up and manage In-App Purchases with AppStore Connect.\n\n### Extensions\n\nHave a very simple need? Maybe this will help.\n\n - [Simple Non-Renewing Subscriptions](https://github.com/j3k0/cordova-non-renewing-subscription)\n   - The easiest way to integrate purchase into an app that only needs a non-renewing subscription.\n\n### Subscriptions\n\nFor proper subscription support, you need a receipt validation server. You can\nimplement your own or use [Fovea's receipt validation service](https://billing.fovea.cc).\n\n# Contribute\n\n - [Contributor Guide](doc/contributor-guide.md)\n\n### Contributors:\n\n * ![](https://avatars1.githubusercontent.com/u/191881?s=64&v=4) [Jean-Christophe Hoelt](https://github.com/j3k0), Author\n * ![](https://avatars3.githubusercontent.com/u/1674289?s=64&v=4) [Josef Fröhle](https://github.com/Dexus), Support\n * Guillaume Charhon, (now defunct) v1 for android\n * Matt Kane, initial iOS code\n * Mohammad Naghavi, original unification attempt\n * Dave Alden [@dpa99c](https://github.com/dpa99c) (Apple-hosted IAPs for iOS)\n\n## Sponsors\n\n * <a href=\"https://fovea.cc\"><img alt=\"Logo Fovea\" src=\"https://fovea.cc/blog/wp-content/uploads/2017/09/fovea-logo-flat-128.png\" height=\"50\" /></a><br/>For sponsoring most of JC's work on the plugin.\n * <img alt=\"Logo Ionic\" src=\"https://www.fovea.cc/files/Ionic-logo-landscape.png\" height=\"50\"><br/>Ionic Framework Team (http://ionicframework.com/)\n * <a href=\"https://www.simplan.de/\"><img alt=\"Logo SimPlan\" src=\"https://files.fovea.cc/wp-content/uploads/SimPlan-Logo.png\" height=\"50\"></a><br/>For sponsoring the UWP platform.\n * Maxwell C. Moore ([MCM Consulting, LLC](http://mcmconsulting.biz))\n * Justin Noel [@calendee](https://github.com/calendee)\n * [Those guys](https://www.indiegogo.com/projects/phonegap-cordova-in-app-purchase-ios-and-android#pledges)\n\n## Licence\n\nThe MIT License\n\nCopyright (c) 2014-2019, Jean-Christophe Hoelt and contributors\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\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","readmeFilename":"README.md","gitHead":"c3fdab0c780423ea19e1722d09ae5f44c43a85d4","_id":"@cognifit/cordova-plugin-purchase@10.3.0","_nodeVersion":"15.4.0","_npmVersion":"7.2.0","dist":{"integrity":"sha512-+lC8tXRHJDH6GJAx62ROF/8ThKzF1CteoTLxcO1ilVSh9/XVXyvcubMCg/HSP9i8Pnw49EOXCjdpLPGDf789RA==","shasum":"a466fb27a139523c5a86ddcb11b131d6640b26f3","tarball":"https://registry.npmjs.org/@cognifit/cordova-plugin-purchase/-/cordova-plugin-purchase-10.3.0.tgz","fileCount":94,"unpackedSize":1018202,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf6e97CRA9TVsSAnZWagAAfpkP/jkmVIK2w1VOetWKUFxl\n+rrlkj097s4sNmuY29Dw2ElGkOm+CQcj4UI/KGPcNv2LcQtaZ7m0djAx9W+E\nTUVHqwfVZx5RZYvKcjAqquDycUzyIxuxO2GABAcWO0gOaS7YY3ITv6zs1UKp\ndDqL2dvKowqPvib3hU745SCuh0rozA/ggf7KscglQ/jQVE9DU6ewjbgLbUeE\nGKkPwq66HmpP8ZYxp2+k3n9/XdsJmVXjMwoS/YqMDKpxfTUx5dLhvUeTGjVK\nO/Lv2vJnKkV7nY4Nl5Ccum0cXEgdsyiRJ2+kpJJjVyOVcehTp1cC2MjyDUfJ\n4mzlWeG6jgeLWEWryHmLXcMVr/ayu7n2RmPqPLAjUKhFEXFauAAJRqrVppD4\nTt8/S+EgYdy9zBfVuL4AHKS20yoZ+2CkfGrpJy7RLD3ncRjRuTSY1HS2xbxw\nVZbzTzuNLQWdvXixuRJgoAqGXFoD0zLVWKFu196ukIvEFBravTRaP675DXOO\nFnyZGnnBhzMJ/bCVV/Oia01RM4bTv+VPq6hb5kl7gOZaNJZU0ueC0XD1W+qq\nhJHcp2wkfPSBrDPcaj6JfukI+ztJomZlj506FaangkNtb6ljwgJE0aRAzKhi\n6s7khVDAhZmmyp8n+aYReSrjQJZFXWCPQuvtxy91oFESZkFuY6lGmg+9d42/\ni/YO\r\n=A18H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBfhE7UegMAo41IdLvmQOpt35UW78ywFTj71XuP/WZoKAiEA1fyW0AWom+0oNTbrOq2yxqHBqbB5livxyLd/5e81pX0="}]},"_npmUser":{"name":"pgutierrez_cf","email":"p.gutierrez@cognifit.com"},"directories":{},"maintainers":[{"name":"pgutierrez_cf","email":"p.gutierrez@cognifit.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cordova-plugin-purchase_10.3.0_1609166714961_0.9755971742125864"},"_hasShrinkwrap":false}},"time":{"created":"2020-12-28T13:07:50.354Z","10.0.1":"2020-12-28T13:07:50.734Z","modified":"2022-04-05T00:11:24.979Z","10.3.0":"2020-12-28T14:45:15.102Z"},"maintainers":[{"email":"m.sanfabian@cognifit.com","name":"martincognifit"},{"email":"d.olivares@cognifit.com","name":"daniolivarescognifit"},{"email":"p.gutierrez@cognifit.com","name":"pgutierrez_cf"}],"description":"CogniFit's fork of cordova-plugin-purchase.\nCordova Purchase plugin for iOS, Android, Windows (AppStore, Play, UWP)","homepage":"https://github.com/cognifit/cordova-plugin-purchase","keywords":["ecosystem:cordova","cordova-android","cordova-ios","cordova-windows","cordova","phonegap","purchase","storekit","ios","android","play","appstore"],"repository":{"type":"git","url":"git+https://github.com/cognifit/cordova-plugin-purchase.git"},"author":{"name":"Jean-Christophe Hoelt","email":"hoelt@fovea.cc"},"bugs":{"url":"https://github.com/cognifit/cordova-plugin-purchase/issues"},"license":"MIT","readme":"","readmeFilename":""}