{"id":26234273,"url":"https://github.com/tamtamchik/app-store-receipt-parser","last_synced_at":"2025-04-22T12:29:35.616Z","repository":{"id":189290136,"uuid":"680423873","full_name":"tamtamchik/app-store-receipt-parser","owner":"tamtamchik","description":"A lightweight TypeScript library for extracting transaction IDs from Apple's ASN.1 encoded receipts.","archived":false,"fork":false,"pushed_at":"2024-09-25T19:32:32.000Z","size":266,"stargazers_count":7,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T04:54:30.504Z","etag":null,"topics":["app-store","apple","asn1","identification","parser","receipt","transactions"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tamtamchik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-19T07:31:55.000Z","updated_at":"2025-04-13T05:40:58.000Z","dependencies_parsed_at":"2025-03-13T01:29:55.086Z","dependency_job_id":"5a0295c7-6ea8-41ba-bfb0-21d16f55eb2b","html_url":"https://github.com/tamtamchik/app-store-receipt-parser","commit_stats":null,"previous_names":["tamtamchik/app-store-receipt-parser"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamtamchik%2Fapp-store-receipt-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamtamchik%2Fapp-store-receipt-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamtamchik%2Fapp-store-receipt-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamtamchik%2Fapp-store-receipt-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tamtamchik","download_url":"https://codeload.github.com/tamtamchik/app-store-receipt-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250240639,"owners_count":21397843,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["app-store","apple","asn1","identification","parser","receipt","transactions"],"created_at":"2025-03-13T01:29:50.267Z","updated_at":"2025-04-22T12:29:35.541Z","avatar_url":"https://github.com/tamtamchik.png","language":"TypeScript","funding_links":["https://www.buymeacoffee.com/tamtamchik"],"categories":[],"sub_categories":[],"readme":"# Apple Receipt Parser\n\n[![Latest Version on NPM][ico-version]][link-npm]\n[![Scrutinizer build][ico-scrutinizer-build]][link-scrutinizer]\n[![Scrutinizer quality][ico-scrutinizer-quality]][link-scrutinizer]\n[![Scrutinizer coverage][ico-scrutinizer-coverage]][link-scrutinizer]\n[![Software License][ico-license]](./LICENSE)\n[![Total Downloads][ico-downloads]][link-downloads]\n\nA lightweight TypeScript library for extracting transaction IDs from Apple's ASN.1 encoded Unified Receipts.\n\n\u003e [!IMPORTANT]\n\u003e This library is not a full-fledged receipt parser. \n\u003e It only extracts some information from Apple's ASN.1 encoded Unified Receipts.\n\u003e It does not work with the old-style transaction receipts.\n\n\u003e [!NOTE]\n\u003e Documentation for the version 1.x of the library can be found [here](https://github.com/tamtamchik/app-store-receipt-parser/tree/1.x/README.md).\n\n## Installation\n\nUsing npm:\n\n```shell\nnpm install @tamtamchik/app-store-receipt-parser\n```\n\nUsing yarn:\n\n```shell\nyarn add @tamtamchik/app-store-receipt-parser\n```\n\n## Usage\n\n```typescript\nimport { parseReceipt } from '@tamtamchik/app-store-receipt-parser';\n\n// Unified Receipt string \nconst receiptString = \"MII...\";\nconst data = parseReceipt(receiptString);\n\nconsole.log(data);\n// {\n//   ENVIRONMENT: 'ProductionSandbox',\n//   APP_VERSION: '1',\n//   ORIGINAL_APP_VERSION: '1.0',\n//   OPAQUE_VALUE: 'c4dd4054b0b61a07beb585f6a842e048',\n//   SHA1_HASH: '2e0a115beac1c57023a5bd37349955a9ad99db4d',\n//   BUNDLE_ID: 'com.mbaasy.ios.demo',\n//   RECEIPT_CREATION_DATE: '2015-08-13T07:50:46Z',\n//   ORIGINAL_PURCHASE_DATE: '2013-08-01T07:00:00Z',\n//   IN_APP_EXPIRES_DATE: '2015-08-10T07:19:32Z',\n//   IN_APP_CANCELLATION_DATE: '',\n//   IN_APP_QUANTITY: '020101',\n//   IN_APP_WEB_ORDER_LINE_ITEM_ID: '0207038d7ea69472c9',\n//   IN_APP_PRODUCT_ID: 'monthly',\n//   IN_APP_TRANSACTION_ID: '1000000166967782',\n//   IN_APP_TRANSACTION_IDS: [\n//     '1000000166865231',\n//     '1000000166965150',\n//     '1000000166965327',\n//     '1000000166965895',\n//     '1000000166967152',\n//     '1000000166967484',\n//     '1000000166967782'\n//   ],\n//   IN_APP_ORIGINAL_TRANSACTION_ID: '1000000166965150',\n//   IN_APP_ORIGINAL_TRANSACTION_IDS: [\n//     '1000000166865231',\n//     '1000000166965150'\n//   ],\n//   IN_APP_PURCHASE_DATE: '2015-08-10T07:14:32Z',\n//   IN_APP_ORIGINAL_PURCHASE_DATE: '2015-08-10T07:12:34Z'\n// }\n```\n\n## Special Thanks\n\n- [@Jurajzovinec](https://github.com/Jurajzovinec) for his superb contribution to the project.\n- [@fechy](https://github.com/fechy) for bringing environment variable support to the lib.\n\n## Contributing\n\nPull requests are always welcome. If you have bigger changes, please open an issue first to discuss your ideas.\n\n## License\n\nApple Receipt Parser is [MIT licensed](./LICENSE).\n\n## Third-Party Licenses\n\nThis project uses `ASN1.js`, licensed under the BSD-3-Clause License. The license text can be found in [LICENSE](./LICENSE).\n\n---\n[![Buy Me A Coffee][ico-coffee]][link-coffee]\n\n[ico-coffee]: https://img.shields.io/badge/Buy%20Me%20A-Coffee-%236F4E37.svg?style=flat-square\n[ico-version]: https://img.shields.io/npm/v/@tamtamchik/app-store-receipt-parser.svg?style=flat-square\n[ico-license]: https://img.shields.io/npm/l/@tamtamchik/app-store-receipt-parser.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/npm/dt/@tamtamchik/app-store-receipt-parser.svg?style=flat-square\n[ico-scrutinizer-build]: https://img.shields.io/scrutinizer/build/g/tamtamchik/app-store-receipt-parser/main.svg?style=flat-square\n[ico-scrutinizer-quality]: https://img.shields.io/scrutinizer/quality/g/tamtamchik/app-store-receipt-parser/main.svg?style=flat-square\n[ico-scrutinizer-coverage]: https://img.shields.io/scrutinizer/coverage/g/tamtamchik/app-store-receipt-parser/main.svg?style=flat-square\n\n[link-coffee]: https://www.buymeacoffee.com/tamtamchik\n[link-npm]: https://www.npmjs.com/package/@tamtamchik/app-store-receipt-parser\n[link-downloads]: https://www.npmjs.com/package/@tamtamchik/app-store-receipt-parser\n[link-scrutinizer]: https://scrutinizer-ci.com/g/tamtamchik/app-store-receipt-parser/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftamtamchik%2Fapp-store-receipt-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftamtamchik%2Fapp-store-receipt-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftamtamchik%2Fapp-store-receipt-parser/lists"}