{"repo":"voltrue2/in-app-purchase","free":true,"listed":false,"github":"https://github.com/voltrue2/in-app-purchase","clone":"git clone https://github.com/voltrue2/in-app-purchase.git","description":"A Node.js module for in-App-Purchase for iOS, Android, Amazon and Windows.","language":"JavaScript","stars":1087,"topics":["in-app","purchase","billing","validation","javascript","receipt","purchase-data","googleplay","android","subscription"],"license":null,"category":"mobile-apps","readme_excerpt":"©Nobuyori Takahashi A node.js module for in-app purchase (in-app billing) and subscription for Apple, Google Play, Amazon Store, Roku, and Windows. It supports Unity receipt also: Unity Documentation NOTE Unity receipt supports the following: Apple, Google Play, and Amazon. What is new As of version 1.10.0 , The module lets you validate Google's receipts using Google Service Account also! Thank you for the input maxs15 Required node.js version 0.12.0 = Online Demo and Documention Online Demo How to install How to use The module supports both Promise and callbacks. Receipt data format Apple An Apple's receipt is a base64 encoded string. Google Play A Google Play's receipt consists of two components. - Signed Data: A JSON data of what the end user purchased. - Signature: A base64 encoded string. The module requires the above two compoents to be as a JSON object. data property in the receipt object can be either an object or a stringified JSON string. Google Play Using Google Service Account If you are using Google service account instead of OAuth for Google, the receipt should look like: The API used is v3. Google Play Using Google Service Account (with Unity receipt) If you are using Google service account with unity receipt, you need to add a 'Subscription' field to your unity receipt. The receipt should look like: Amazon An Amazon's receipt contains the following: - User ID: A string of Amazon Store user ID. - Receipt ID: A string of Amazon receipt. The module requires the a","default_branch":null,"files":null,"tree":[],"storefront":"/r/voltrue2","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/voltrue2/in-app-purchase/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}