on-internet
← Community

StoreKit2 AppTransaction.shared verification on macOS

Stack Overflow ·

I used to use Receigen to generate receipt-validation code, but since Apple has deprecated exit code 173, everything is being adapted to StoreKit2. Following a similar approach to https://developer.apple.com/documentation/storekit/apptransaction/shared (and an example provided by Apple Developer Technical Support at https://developer.apple.com/forums/thread/764537?page=2), I am basically replacing the old receipt-check with: Swift: @objc class ValidateReceipt: NSObject { @objc func validate() async -> Bool { do { let verificationResult = try await AppTransaction.shared switch verificationResul

Comments

Sign in or sign up to comment and upvote.

No comments yet.