In-App Purchase (built in model)

So I could easily be wrong about this but, from what I have gathered from StoreKit information, built-in in app purchase information is retained by the app store therefore you do not require your own server etc to store information.

From what I can tell purchases would be hard to implement from within unity. However, if a purchase is made we should save that information to preferences, NSUserDefaults is one such preferences that can be used.

Now are we able to access NSUserDefaults from within unity iphone basic? If this is possible, we should be able to implement in-app purchases by building the “store” outside of unity.

Tell me… am I dreaming? or is it easier then it sounds?[/i]

It’s easy to read any value set via NSUserDefaults in Unity. PlayerPrefs is just a wrapper for NSUserDefaults. So just PlayerPref.GetInt(“NameOfValueSetInObjC”); and you’re set.

If you are just unlocking content already in the app bundle using a non-consumable purchase, then most of the required UI is already handled by Apple dialogs.

This article could probably get you most of the way there:
http://blog.mugunthkumar.com/coding/iphone-tutorial-–-in-app-purchases/

Possible! Exactly what I wanted to hear. Any advice for how a “store” page could be created for the in app purchase.

Would this be possible from within unity or would we need to do it in obj-C. Would the method used by blurst be viable for tackling this problem?

http://technology.blurst.com/a-cocoa-based-frontend-for-unity-iphone-applications/

You don’t need a store page at all.

You would probably need a GUI page in your game that explains what’s going to be unlocked and a button to start the process (that doesn’t mention price). From there it’s all Apple dialogs asking you to sign into your iTunes account, and confirming that you want to pay $$$.

Then once everything is verified on Apple’s end, your delegate gets called and you’d set the NSUserDefault that unlocks the content. You might want to show a “Thank You” GUI page and hide the “Buy” button after that’s set.

The Urban Airship plugin I did would be overkill for a single, non-consumable unlockable, but if you didn’t want to write any code it might be worth it.
http://forum.unity3d.com/viewtopic.php?t=36738

This thread is a bit old so I’m assuming @makaleth already figured it out by now. To those of you who are just starting out and are looking for a solution. My company (www.soom.la) is a self-serve platform for dynamic in-app purchase stores. You start off with a template that you can fully customize and get a store in your game with 5 minutes and no coding. The solution has the in-app purchase functions already built in as well as a server side funtionality with dynamic changes and analytics.

Please check it out and let me know what you think.