Created
December 9, 2016 15:20
-
-
Save EllinaKuznetcova/ea70866890587f40ad9a1adc7f10aee1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension InAppManager: SKPaymentTransactionObserver { | |
func paymentQueue(_ queue: SKPaymentQueue, updatedTransactions transactions: [SKPaymentTransaction]) { | |
for transaction in transactions { | |
guard let productType = ProductType(rawValue: transaction.payment.productIdentifier) else {fatalError()} | |
switch transaction.transactionState { | |
case .purchasing: | |
case .purchased: | |
case .failed: | |
case .restored: | |
case .deferred: | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment