forked from organicmaps/organicmaps
[iOS] ignore pending transactions in .purchasing state on enter to catalog
https://jira.mail.ru/browse/MAPSME-9921
This commit is contained in:
parent
1ef1474b4c
commit
717cab7e7d
1 changed files with 7 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue