Skip to content

Instantly share code, notes, and snippets.

@EllinaKuznetcova
Created December 9, 2016 15:20
Show Gist options
  • Save EllinaKuznetcova/ea70866890587f40ad9a1adc7f10aee1 to your computer and use it in GitHub Desktop.
Save EllinaKuznetcova/ea70866890587f40ad9a1adc7f10aee1 to your computer and use it in GitHub Desktop.
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