bizz84 / bizz84/SwiftyStoreKit

Receipt verification

Open
#670 0 comments 0 reactions 0 assignees View on GitHub
type: question
Dominant language
Swift
Stars
6.7k
Forks
801
PR merge metrics
No merged PRs in 30d

Description

I have one non-consumable IAP in iOS app (premium update)

1- Should I call this verify method every time the user opens the app

let appleValidator = AppleReceiptValidator(service: .production, sharedSecret: "xxxxxxxxxxxx")
SwiftyStoreKit.verifyReceipt(using: appleValidator, forceRefresh: true) { result in
switch result {
case .success(let receipt):
print("success: \(receipt)")
case .error(let error):
print("Verify receipt failed: \(error)")
}
}

To make sure app is truly paid and IAP not hacked ?

2- Also inside the success block i should open the app premium features , while inside failure i should lock them ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.