SriKanth
SriKanth

Reputation: 459

In - App Purchases in iPhone

I have developed an iPhone Application that has three Levels. Those three Levels are displayed as three tabs in single view.

The first level is free. 2nd and 3rd are locked.

I read some tutorials but I didn't get clarity that which type of In - App -Purchase suitable for my application.

Because if I use Consumable The three Levels must be three Different Applications(But I Have 3 tabs in a single Application), If I use Non - Consumable, an application should purchase only once.

But when user wants to unlock the 2nd Level, users need to do payment, I have bit confusionhere, If I want to sale the 2nd/3rd level to the user, Is those (2nd & 3rd) levels must be different Applications.?

Here I want to unlock a tab(i.e; a button which is Locked.). When user Click on the button It should connect with Appstore and do transactions.

If it is successful, that level should be opened.

Please let me know if you have any source code.

Thanks

Upvotes: 4

Views: 4351

Answers (4)

Freney
Freney

Reputation: 1194

2 tutorials I found useful:

The type of purchase you need is largely independent of the rest of the IAP architecture - you just choose the type you want (as others have said, non-consumable) when creating the purchase product on iTunes connect.

Upvotes: 1

shoughton123
shoughton123

Reputation: 4251

You do not need to have separate applications for each level. You need to create boolean values that change based on the user purchasing a level you then need to save them in your app. Also on fresh installs of the app you need to be checking if the user has already purchased a level and then enable/disable the levels based on the values you get back.

Upvotes: 1

Gajendrasinh Chauhan
Gajendrasinh Chauhan

Reputation: 3397

You can check about In App Purchase.You can refer below reference.

http://www.raywenderlich.com/2797/introduction-to-in-app-purchases

Upvotes: 1

joern
joern

Reputation: 27620

You should use 2 non-consumable products. One for Level2 and one for Level3. This way you can make sure, that your user only pays once per level. And the Levels could have different prices if you wish to.

Upvotes: 1

Related Questions