Post

Replies

Boosts

Views

Activity

StoreKit 2 and its receipt verification
Hey folks! One of my customers has problem when purchasing the in-app subscription: The operation couldn't be completed (StoreKit.VerificationResult<StoreKit.Transaction>.VerificationError error 2.) Any idea why this happens? I'm using the standard purchase verification private func checkVerified<T>(_ result: VerificationResult<T>) throws -> T {     //Check if the transaction passes StoreKit verification.     switch result {     case let .unverified(_, error):         //StoreKit has parsed the JWS but failed verification. Don't deliver content to the user.         throw error     case .verified(let safe):         //If the transaction is verified, unwrap and return it.         return safe     } }
1
0
3.3k
Dec ’21
StoreKit 2 and its receipt verification
Hey folks! One of my customers has problem when purchasing the in-app subscription: The operation couldn't be completed (StoreKit.VerificationResult<StoreKit.Transaction>.VerificationError error 2.) Any idea why this happens? I'm using the standard purchase verification private func checkVerified<T>(_ result: VerificationResult<T>) throws -> T {     //Check if the transaction passes StoreKit verification.     switch result {     case let .unverified(_, error):         //StoreKit has parsed the JWS but failed verification. Don't deliver content to the user.         throw error     case .verified(let safe):         //If the transaction is verified, unwrap and return it.         return safe     } }
Replies
1
Boosts
0
Views
3.3k
Activity
Dec ’21