Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--iphone/Maps/Core/InappPurchase/Impl/BillingPendingTransaction.swift8
1 files changed, 7 insertions, 1 deletions
diff --git a/iphone/Maps/Core/InappPurchase/Impl/BillingPendingTransaction.swift b/iphone/Maps/Core/InappPurchase/Impl/BillingPendingTransaction.swift
index e006862376..b509f5e91e 100644
--- a/iphone/Maps/Core/InappPurchase/Impl/BillingPendingTransaction.swift
+++ b/iphone/Maps/Core/InappPurchase/Impl/BillingPendingTransaction.swift
@@ -12,8 +12,14 @@ final class BillingPendingTransaction: NSObject, IBillingPendingTransaction {
var status: TransactionStatus {
let routeTransactions = SKPaymentQueue.default().transactions.filter {
- !Subscription.legacyProductIds.contains($0.payment.productIdentifier) &&
+ var isOk = !Subscription.legacyProductIds.contains($0.payment.productIdentifier) &&
!Subscription.productIds.contains($0.payment.productIdentifier)
+ if isOk && $0.transactionState == .purchasing {
+ isOk = false
+ Statistics.logEvent("Pending_purchasing_transaction",
+ withParameters: ["productId" : $0.payment.productIdentifier])
+ }
+ return isOk
}
if routeTransactions.count > 1 {