It looks like you're new here. If you want to get involved, click one of these buttons!
It's not nice to sell a code that's available online in a tutorial: XCode Tutorials: How To: Implement In App Purchase The Easy Way, Ever.Jaxen66;437761 said:As the title says i am willing to sell my code.
The price is only 10 bucks, so PM and i will send you my code :)
Oops! I forgot one more thing!
Since you will be testing this in your device, you might want to test the IAP a few times. So we need to add another button (which will be hidden or just deleted when you submit the app) to reset the Keychain value.
Just add a button... and implement IBAction for it as below:
NSError *error = nil;
[SFHFKeychainUtils deleteItemForUsername:@\"<span class=\"Apple-style-span\" style=\"font-family: Times; font-size: small;\">IAPNoob01</span>\" andServiceName:kStoredData error:&error];
To test the IAP process again, just tap the button and delete the app in your device, and then rerun it. The app's Feature 2 should be Locked again.
Ok, now we're Done! Yay!