Created
April 28, 2021 14:37
-
-
Save sonjh1217/094c6718df631ec1ee7714a6c3d2b4f6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class IAPManager { | |
func receipt() -> NSData? { | |
if let receiptURL = Bundle.main.appStoreReceiptURL, | |
FileManager.default.fileExists(atPath: receiptURL.path) { | |
return NSData(contentsOf: receiptURL) | |
} | |
return nil | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment