Skip to content

linjunpop/receipt_decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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