Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 1.57 KB

README.md

File metadata and controls

50 lines (32 loc) · 1.57 KB

ReceiptDecoder

CI codebeat badge Hex.pm

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.7.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