Skip to content
Browse files

Attempts to verify transaction that are not purchased or restored is …

…classified as an failure.
  • Loading branch information...
1 parent 9d7ea95 commit aa913e445d87f153f507fe3c92960a2600663fdd @lxcid committed Dec 9, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 CargoBay/CargoBay.m
View
3 CargoBay/CargoBay.m
@@ -670,6 +670,9 @@ - (void)verifyTransaction:(SKPaymentTransaction *)transaction
failure:(void (^)(NSError *error))failure
{
if ((transaction.transactionState != SKPaymentTransactionStatePurchased) && (transaction.transactionState != SKPaymentTransactionStateRestored)) {
+ if (failure) {
+ failure([[NSError alloc] initWithDomain:SKErrorDomain code:-1 userInfo:nil]);
+ }
return;
}
NSError *error = nil;

0 comments on commit aa913e4

Please sign in to comment.
Something went wrong with that request. Please try again.