A pure-Swift library for reading and validating Apple In-App Purchase receipts locally on iOS, macOS, tvOS, watchOS, and visionOS.
TPInAppReceipt is a Swift library for reading and validating Apple In-App Purchase receipts locally on Apple platforms. It solves the problem of verifying purchase authenticity and subscription status without relying on server-side validation, making it ideal for apps that handle IAPs directly on the device.
iOS, macOS, tvOS, watchOS, and visionOS developers who implement In-App Purchases and need to validate receipts locally for security, subscription management, or offline functionality.
Developers choose TPInAppReceipt for its pure-Swift implementation, type-safe API, and comprehensive local validation features, which simplify receipt handling while maintaining security and performance without external dependencies.
Reading and Validating In App Purchase Receipt Locally.
The library is written entirely in Swift with no external dependencies, ensuring seamless integration and leveraging modern Swift features for type safety and performance.
It performs default validation including certificate chain, signature, hash, and metadata checks, as per the README, providing robust security without server calls.
Enables querying purchases, checking subscription status, and verifying introductory offer eligibility, essential for handling In-App Purchases effectively.
Supports advanced use cases via @VerifierBuilder for custom validation logic, giving developers fine-grained control over validation rules.
Offers a synchronous API for contexts where async/await is not available, ensuring compatibility with legacy or specific coding environments.
Only supports iOS, macOS, tvOS, watchOS, and visionOS, making it unsuitable for cross-platform or non-Apple projects, limiting its versatility.
The README includes a migration guide for v4.0, indicating that updates can introduce breaking changes that require significant code adjustments and maintenance effort.
While it validates locally, it doesn't integrate with Apple's server validation for real-time checks, which might be a security gap for apps needing highest assurance.
Requires Swift 6.0+ and Xcode 16+, which could be a barrier for teams on older toolchains or projects with legacy codebases.
Lightweight In App Purchases Swift framework for iOS 8.0+, tvOS 9.0+ and macOS 10.10+ ⛺
A lightweight iOS library for In-App Purchases
card.io provides fast, easy credit card scanning in mobile apps
CreditCardForm is iOS framework that allows developers to create the UI which replicates an actual Credit Card.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.