-
Notifications
You must be signed in to change notification settings - Fork 796
Retrieve Local Receipt (encrypted)
Samuel Spencer edited this page Jan 22, 2021
·
2 revisions
This helper can be used to retrieve the (encrypted) local receipt data:
let receiptData = SwiftyStoreKit.localReceiptData
let receiptString = receiptData.base64EncodedString(options: [])
// Do your receipt validation here...
However, the receipt file may be missing or outdated. You may need to fetch the receipt.