Created
November 29, 2017 04:29
-
-
Save jeiting/cc785ed29ff3b874a55fd6f9dfe69be5 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
func paymentQueue(_ queue: SKPaymentQueue, updatedTransactions transactions: [SKPaymentTransaction]) { | |
for transaction in transactions { | |
switch(transaction.transactionState) { | |
case .purchasing: | |
break; | |
case .purchased: | |
case .restored: | |
handlePurchase(transaction); | |
case .failed: | |
handleFailure(transaction); | |
case .deferred: | |
break; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment