realglebivanov / receipt_decoder

πŸ”‘ Decode iOS App receipt in Elixir

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

πŸ”‘ Decode iOS App receipt in Elixir

License:MIT License


Languages

Language:Elixir 68.1%Language:Erlang 31.9%