In App Purchase - when trying to buy consumable product again - this in-app purchase has already been bought

后端 未结 2 1557
生来不讨喜
生来不讨喜 2021-01-04 02:23

I have consumable In-App-Purchase product in my iTunes connect, and when I\'m trying to buy it twice (on my iPhone), it tells me that I already bought it. But this is the wh

2条回答
  •  自闭症患者
    2021-01-04 02:44

    public func paymentQueue(_ queue: SKPaymentQueue, updatedTransactions transactions: [SKPaymentTransaction]) {
        for transaction in transactions {
            switch (transaction.transactionState) {
            case .purchased:
                complete(transaction: transaction)
                break
            case .failed:
                fail(transaction: transaction)
                break
            case .restored:
                restore(transaction: transaction)
                break
            case .deferred:
                break
            case .purchasing:
                break
            }
        }
    }
    

提交回复
热议问题