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
}
}