receipt_decoder
receipt_decoder copied to clipboard
🔑 Decode iOS App receipt in Elixir
trafficstars
ReceiptDecoder
This is a package to decode iOS App receipt.
Please check AppStore 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:
def deps do
[
{:receipt_decoder, "~> 0.6.0"}
]
end
Usage
ReceiptDecoder.decode(BASE64_ENCODED_RECEIPT)
# {:ok, %ReceiptDecoder.AppReceipt{...}}
Please view the detailed documentation at https://hexdocs.pm/receipt_decoder.
Or see it in action: http://receipt-viewer.linjun.me
Changes
See 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 to Erlang modules in the directory: src
See also
- ReceiptVerifier - verify the receipt with App Store
- AppStore - a package for the new App Store Server API