Verify iOS App receipt with the App Store.
Simply add receipt_verifier
to your list of dependencies in mix.exs
:
def deps do
[
{:receipt_verifier, "~> 0.12.0"},
{:jason, "~> 1.0"} # or {:poison, "~> 4.0"}
]
end
then run mix deps.get
and you are ready to go.
ReceiptVerifier.verify(BASE64_ENCODED_RECEIPT_DATA, env: :production)
# %ReceiptVerifier.ResponseData{...}
Please view the detailed documentation at https://hexdocs.pm/receipt_verifier.
See CHANGELOG.md
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/linjunpop/receipt_verifier.