This is a package to decode iOS App receipt.
Please check AppStore for a package for the new App Store Server API.
The package can be installed by adding receipt_decoder
to your list
of dependencies in mix.exs
:
def deps do
[
{:receipt_decoder, "~> 0.7.0"}
]
end
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
See CHANGELOG.md
Bug reports and pull requests are welcome on GitHub at https://github.com/linjunpop/receipt_decoder.
Run $ mix receipt_decoder.compile_asn1
to compile the ReceiptModule.asn1 to Erlang modules in the directory: src
- ReceiptVerifier - verify the receipt with App Store
- AppStore - a package for the new App Store Server API