In-app purchases

Posted by admin on Thursday Jul 1, 2010 Under App Development

In app purchases are a great way to add revenue to your application. Apple also now allow in-app purchases in free apps where once they didn’t. Its not *that* difficult but again I’m all for saving time so I hunted around to see what was on the net that would wrap this functionality. I stumbled across Mugunth Kumar’s excellent MKStoreKit which you can get here.

I did have a couple of small issues. The first is the name of your in-app purchase. I was led to believe this should be in the format;

com.<business name>.<in app purchase item name>

When in fact you dont specify the whole bundle identifier but just the in-app purchase item name. Secondly MKStoreKit is great for one off purchases as it has two flags; FeatureAPurchased and FeatureBPurchased. My in-app purchases were consumable so I simply wired up the delegate to my view controller like so;

[MKStoreManager setDelegate:self];

And then implemented the delegate method;

- (void)productPurchased:(NSString *)productId

Leave a Reply