https://github.com/linjunpop/receipt_decoder
🔑 Decode iOS App receipt in Elixir
https://github.com/linjunpop/receipt_decoder
decoder elixir in-app-purchase ios itunes receipt
Last synced: 5 months ago
JSON representation
🔑 Decode iOS App receipt in Elixir
- Host: GitHub
- URL: https://github.com/linjunpop/receipt_decoder
- Owner: linjunpop
- License: mit
- Created: 2017-08-09T01:49:55.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-06-14T22:59:14.000Z (over 1 year ago)
- Last Synced: 2025-04-04T21:11:15.718Z (6 months ago)
- Topics: decoder, elixir, in-app-purchase, ios, itunes, receipt
- Language: Elixir
- Homepage:
- Size: 142 KB
- Stars: 16
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# ReceiptDecoder

[](https://codebeat.co/projects/github-com-linjunpop-receipt_decoder-master)
[](https://hex.pm/packages/receipt_decoder)This is a package to decode iOS App receipt.
Please check [AppStore](https://github.com/linjunpop/app_store) for a package for the new App Store Server API.
## Installation
The package can be installed by adding `receipt_decoder` to your list
of dependencies in `mix.exs`:```elixir
def deps do
[
{:receipt_decoder, "~> 0.7.0"}
]
end
```## Usage
```elixir
ReceiptDecoder.decode(BASE64_ENCODED_RECEIPT)
# {:ok, %ReceiptDecoder.AppReceipt{...}}
```Please view the detailed documentation at [https://hexdocs.pm/receipt_decoder](https://hexdocs.pm/receipt_decoder).
Or see it in action: [http://receipt-viewer.linjun.me](http://receipt-viewer.linjun.me)
## Changes
See [CHANGELOG.md](CHANGELOG.md)
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/linjunpop/receipt_decoder.
### Development
Run `$ mix receipt_decoder.compile_asn1` to compile the [ReceiptModule.asn1](./asn1/ReceiptModule.asn1) to Erlang modules in the directory: [src](./src)
## See also
- [ReceiptVerifier](https://github.com/linjunpop/receipt_verifier) - verify the receipt with App Store
- [AppStore](https://github.com/linjunpop/app_store) - a package for the new App Store Server API