Simple-StoreKit-Wrapper - Really simple StoreKit wrapper that works with iOS 7 with no dependencies.
This is my stab at making a StoreKit wrapper. StoreKit has been around awhile but it has had quite a lot of changes since its inception, so there are many dated codes and tutorial all over the web. I know there already are a few of them, namely MKStoreKit and RMStore. Both looked great, however neither of them works by just drop the codes in, change a few codes, and run. MKStoreKit hasn’t been updated for over a year and RMStore should’ve worked for me but it didn’t.
The codes are adapted from a dated tutorial and the server side validation is from MKStoreKit with minor changes.
I believe this code is needed since there are many misinformation all around the web partly because Apple kept changing it over iOS iterations. The biggest obstacle for me is during validation, there are no guides out there that mentions
+ in base64 encoded string is valid and it is replaced by spaces after sending it via
POST to your server. Just a single line of
[receiptString stringByReplacingOccurrencesOfString:@"+" withString:@"%2B"] could’ve save almost a day of work.
This is a project I’ll kept on using since, well, paid apps are dead. I just confirmed it myself with Note Number One, it has a decent downloads number during the first week it’s free, and I’ve sold 3 on the second week for it being a dollar app. I’ve set it back to free and the next update, it’ll have ads with in-app purchase.