- Add
cancellation_date
&cancellation_reason
toIAPReceipt
(#13) - Update fields per the updated official doc: https://developer.apple.com/documentation/appstorereceipts/verifyreceipt
- Fixes deprecated time unit:
:milliseconds
.
- Change the HTTP Client to hackney.
- Make Jason an optional dependency.
- Requires Elixir 1.4.
- Fixes custom JSON adapter not working for encoding.
- Fixes a retryable response with the error code from 21100 to 21199 may fail to retry.
- Make JSON library an optional dependency, Jason is recommended.
- Allow
Poison ~> 4.0
to be used. Thanks @ericentin.
- Added
is_in_intro_offer_period
toReceiptVerifier.IAPReceipt
. - Added
:auto
to theenv
option which make it explicitly to retry in different sandbox and production env.
- Added a key
raw
toReceiptVerifier.ResponseData
, Thanks @thousandsofthem.
- Fixes the retry flag in response for
21199
should beis_retryable
. - Handle
21010
status. - Added
environment
to%ReceiptVerifier.ResponseData{}
.
- Drop config the
shared_secret
, Added:password
option toReceiptVerifier.verify/2
- Fixes if receipt is retrying with 21007 & 20118 status, the options will be ignored.
- Change
ReceiptVerifier.verify/1
toReceiptVerifier.verify/2
which accepts an optionalReceiptVerifier.Client.options
. - Use
ReceiptVerifier.verify(receipt, exclude_old_transactions: true)
to make the:latest_iap_receipts
in response data only contains the latest item. - Returns error for the new
21100-21199 Internal data access error
. - Added new field
:pending_renewal_receipts
toReceiptVerifier.ResponseData
- Now receipts are parsed as
ReceiptVerifier.AppReceipt
andReceiptVerifier.IAPReceipt
struct with essential fields, instead of a giant Map struct. - Extract
ReceiptVerifier.Client
andReceiptVerifier.Parser
module. - Fixes
shared_secret
should be an optional config. - Drop support for Elixir 1.2. (
with ... else
is awesome)
- Handle error with code 21009.
- Support Elixir 1.4
- Drop denpendency on
HTTPoison
, use:httpc
instead.
- Set latest_receipt_info's default to
[]
.
- Support auto-renewable subscriptions.
- Handle 503 Service Unavailable.
- Initial release.