Back to directory

TPInAppReceipt

A lightweight, pure-Swift library for reading and validating Apple In-App Purchase receipts locally, without sending them to a server.

TPInAppReceipt

TPInAppReceipt is a Swift library for reading and validating Apple In-App Purchase receipts entirely on-device. It decodes a local receipt or one supplied as raw data, then exposes its fields so an app can check purchases, active subscriptions, and introductory-offer eligibility.

Its default validation checks the certificate chain, signature, hash, and metadata, and returns a valid or invalid result with the specific error when validation fails; custom validators can be added through a verifier builder. A blocking variant of the API is available for contexts where async calls are not an option.

It installs through the Swift Package Manager and supports Swift 6 across macOS, iOS, tvOS, watchOS, and visionOS, under the MIT license.

More in Libraries

See all 292
  • OpenDecision

    deepanwadhwa.github.io

    An open-source Python package that answers typed questions about application state or documents using a local natural-language-inference model, returning structured choice, score, yes/no or evidence-relation values instead of free text.

  • TradeCanvas

    bonguynvan.github.io

    A zero-dependency canvas charting engine for building TradingView-style trading charts in JavaScript, with 66 technical indicators, 24 drawing tools, 17 chart types, and real-time streaming.

  • 3d retro graphics

    3d-retro.com

    A free, CC0-licensed library of copy-paste retro 3D and demoscene graphics effects, such as plasma, raytracing, and voxel terrain, runnable as WebGL 1 or plain 2D canvas.