<commit_before>IAPHelper is base on Ray Wenderlich [tutorial](http://www.raywenderlich.com/2797/introduction-to-in-app-purchases). This library is change to ARC and Block Structure to use more easier.

#How to use

Add 

* IAPHelper.h
* IAPHelper.m
* IAPShare.h
* IAPShare.m

in your product.

Add

* Storekit framework

In the file that you want to use in app purcahses

	#import IAPShare.h
	
	…
	…
	…
	
	if([IAPShare sharedHelper].iap) {
		[IAPShare sharedHelper].iap = [[IAPHelper alloc] initWithProductIdentifiers:dataSet];
	}
	
	
## Get Product List

	 [[IAPShare sharedHelper].iap requestProductsWithCompletion:^(SKProductsRequest* request,SKProductsResponse* response)
       {
       	//todo here
       	// you can get product list from response.products 
       	// or [[IAPShare sharedHelper].iap.products
       	// 	
       }];
       
       
## Buy Product
      
        SKProduct* product =[[IAPShare sharedHelper].iap.products objectAtIndex:indexPath.row];

    [[IAPShare sharedHelper].iap buyProduct:product 
                               onCompletion:^(SKPaymentTransaction* trans){ 
                                   NSLog(@"Done");
                               }
                                     OnFail:^(SKPaymentTransaction* trans) {
                                         NSLog(@"Error");
                                     }];
       
       
## Restore Product

	[[IAPShare sharedHelper].iap restoreProductsWithCompletion:^(SKPaymentTransaction* trans){
       
        NSLog(@"Restore Done");
        
    }OnFail:^(SKPaymentTransaction* trans)
    {
        
    }];


##Todo

* Add Subscription In App Purcahses
* Check Server Record Transaction<commit_msg>fixed readme<commit_after>IAPHelper is base on Ray Wenderlich [tutorial](http://www.raywenderlich.com/2797/introduction-to-in-app-purchases). This library is change to ARC and Block Structure to use more easier.

#How to use

Add 

* IAPHelper.h
* IAPHelper.m
* IAPShare.h
* IAPShare.m

in your product.

Add

* Storekit framework

In the file that you want to use in app purcahses

	#import IAPShare.h
	
	…
	…
	…
	
	if([IAPShare sharedHelper].iap) {
		[IAPShare sharedHelper].iap = [[IAPHelper alloc] initWithProductIdentifiers:dataSet];
	}
	
	
## Get Product List

	 [[IAPShare sharedHelper].iap requestProductsWithCompletion:^(SKProductsRequest* request,SKProductsResponse* response)
       {
       	//todo here
       	// you can get product list from response.products 
       	// or [[IAPShare sharedHelper].iap.products
       	// 	
       }];
       
       
## Buy Product
      
        SKProduct* product =[[IAPShare sharedHelper].iap.products objectAtIndex:indexPath.row];

    [[IAPShare sharedHelper].iap buyProduct:product 
                               onCompletion:^(SKPaymentTransaction* trans){ 
                                   NSLog(@"Done");
                               }
                                     OnFail:^(SKPaymentTransaction* trans) {
                                         NSLog(@"Error");
                                     }];
       
       
## Restore Product

	[[IAPShare sharedHelper].iap restoreProductsWithCompletion:^(SKPaymentTransaction* trans){
       
        NSLog(@"Restore Done");
        
    }OnFail:^(SKPaymentTransaction* trans)
    {
        
    }];


##Todo

* Check Server Record Transaction
{'fraction_non_alphanumeric': 0.096045197740113, 'fraction_numerical': 0.0023788284269997025, 'mean_word_length': 1.9822695035460993, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5334443', 'n_tokens_mistral': 1004, 'n_tokens_neox': 925, 'n_words': 221}