Skip to content

✅ Verify iOS App receipt with the App Store

License

Notifications You must be signed in to change notification settings

linjunpop/receipt_verifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReceiptVerifier

Important

The verifyReceipt endpoint is deprecated, Please check AppStore to validate in-app purchases with App Store Server API.

CI Hex.pm codebeat badge Inline docs

Verify iOS App receipt with the App Store.

⚠️ Only iOS 7 style app receipt is supported.

Installation

Simply add receipt_verifier to your list of dependencies in mix.exs:

def deps do
  [
    {:receipt_verifier, "~> 0.14"},
    {:jason, "~> 1.0"}
  ]
end

then run mix deps.get and you are ready to go.

Usage

ReceiptVerifier.verify(BASE64_ENCODED_RECEIPT_DATA, env: :production)
# {:ok, %ReceiptVerifier.ResponseData{...}}

Please view the detailed documentation at https://hexdocs.pm/receipt_verifier.

Changes

See CHANGELOG.md

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/linjunpop/receipt_verifier.

See also