Automatic retry, if sandbox receipt was send to production.
Response object is pure swift struct using enums.
API Erros are translated into corresponding swift errors.
Usage
Add swift-app-store-receipt-validation, async-http-client and swift-nio as dependencies to
your project. For this open your Package.swift and add this to your dependencies:
AppStoreReceiptValidation
This package implements the validating receipts with the app store api.
Features:
AsyncHTTPClient
andSwift-NIO
under the hood.Usage
Add
swift-app-store-receipt-validation
,async-http-client
andswift-nio
as dependencies to your project. For this open yourPackage.swift
and add this to your dependencies:Then, add
AsyncHTTPClient
,SwiftNIO
andAppStoreReceiptValidation
as target dependencies.To verify an AppStore Receipt in your code you need to create an
HTTPClient
first: