Skip to content

Commit

Permalink
Added support for in-app purchases
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Schoenberg authored and Evan Schoenberg committed Oct 9, 2009
1 parent 88839f2 commit 3484c09
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Classes/Day.m
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,13 @@ - (id)initWithCSV:(NSString *)csv
}
NSString *royaltyCurrency = [columns objectAtIndex:15];

/* Treat in-app purchases as regular purchases for our purposes.
* IA1: In-App Purchase
* Presumably, IA7: In-App Free Upgrade / Repurchase.
*/
if ([transactionType isEqualToString:@"IA1"])
transactionType = @"1";

Country *country = [self countryNamed:countryString]; //will be created on-the-fly if needed.
Entry *entry = [[[Entry alloc] initWithProductName:productName
transactionType:[transactionType intValue]
Expand Down

0 comments on commit 3484c09

Please sign in to comment.