Skip to content

Instantly share code, notes, and snippets.

@phil-hudson
Created March 22, 2016 13:27
Show Gist options
  • Save phil-hudson/abe079e1d4b3ecf0c64d to your computer and use it in GitHub Desktop.
Save phil-hudson/abe079e1d4b3ecf0c64d to your computer and use it in GitHub Desktop.
//https://www.raywenderlich.com/105365/in-app-purchases-tutorial-getting-started
private func failedTransaction(transaction: SKPaymentTransaction) {
print("failedTransaction...")
if transaction.error!.code != SKErrorCode.PaymentCancelled.rawValue {
print("Transaction error: \(transaction.error!.localizedDescription)")
}
SKPaymentQueue.defaultQueue().finishTransaction(transaction)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment