Skip to content

Commit 3863769

Browse files
fix: retrieve latest transactions
1 parent e0321fb commit 3863769

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

ios/Plugin/Subscriptions.swift

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -253,24 +253,6 @@ import UIKit
253253

254254
var receiptString = "";
255255

256-
if let appStoreReceiptURL = Bundle.main.appStoreReceiptURL,
257-
FileManager.default.fileExists(atPath: appStoreReceiptURL.path) {
258-
259-
260-
do {
261-
let receiptData = try Data(contentsOf: appStoreReceiptURL, options: .alwaysMapped)
262-
print("Receipt Data: ", receiptData)
263-
264-
265-
receiptString = receiptData.base64EncodedString(options: [Data.Base64EncodingOptions.endLineWithCarriageReturn])
266-
print("Receipt String: ", receiptString)
267-
268-
269-
// Read receiptData.
270-
}
271-
catch { print("Couldn't read receipt data with error: " + error.localizedDescription) }
272-
}
273-
274256
return [
275257
"responseCode": 0,
276258
"responseMessage": "Latest transaction found",

0 commit comments

Comments
 (0)