Created
September 23, 2014 13:11
-
-
Save ivanacostarubio/514a40d2e189c4c95d07 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| if let trans:SKPaymentTransaction = transaction as? SKPaymentTransaction{ | |
| switch trans.transactionState { | |
| case .Purchased: | |
| println("Product Purchased"); | |
| SKPaymentQueue.defaultQueue().finishTransaction(transaction as SKPaymentTransaction) | |
| break; | |
| case .Failed: | |
| println("Purchased Failed"); | |
| SKPaymentQueue.defaultQueue().finishTransaction(transaction as SKPaymentTransaction) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment