Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receipt verification #670

Open
ShKhan9 opened this issue Mar 8, 2022 · 0 comments
Open

Receipt verification #670

ShKhan9 opened this issue Mar 8, 2022 · 0 comments

Comments

@ShKhan9
Copy link

ShKhan9 commented Mar 8, 2022

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant