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
- (void) buyFeature:(NSString*) featureId onComplete:(void (^)(NSString*)) completionBlock onCancelled:(void (^)(void)) cancelBlock; | |
//method call | |
[[MKStoreKit sharedManager] buyFeature:[product objectForKey:@"identifier"] | |
onComplete:^ (NSString *something) { | |
NSLog(@"Transaction Complete"); | |
} onCancelled:^ { | |
NSLog(@"Purchase Cancelled"); | |
}]; |