In App Purchase - Level Unlock

Hi,

I wanted to know how to build an In App Purchase system to unlock some level of my game.

Are there package for that ?
Do you store your level as assetbundle and download them as the level get unlocked ?
How do you handle the cache systeme to not have to download them each time ?
Do you build your level in your app and just unlock them ?

Thanks a lot !

Hi MaT

You can use both ways, either download it as asset bundle or just unlock it in your code. Depends on the app size you are targeting, and the amount of levels you want to unlock.
For implementation, I strongly recommend using the prime31 tool: http://prime31.com/
Easy implementation and a lot of support throughout the whole internet cause of the massive amount of developers using it.

Hi Sn0r,

Thanks for your answer.
I don’t know which package to choose, I saw this one too.
But how can I store the assetbundle ? I think I need to use the cache system no ? To do this I need a backend ?

MaT, that one is for iOS only, right?
We use Plato Evolved for Android. Works fine for in-app purchases on Android.

If you’re familiar with writing Android apps in java with something like Eclipse, writing your own plugin isn’t that difficult. Once you know how to alter the manifest file, create a jar, and call methods in the jar from Unity, there’s not really much else to it.

I just started with Unity not too long ago, but prior to that I wrote some Android apps in Eclipse. The last game I made has an In App store for level unlocks. As far as level unlocking goes, I just hardcoded locks into the full game. Seemed like the easiest way to go about it.