Sandeep Kumar
Sandeep Kumar

Reputation: 1605

type of item for in app purchase

how to get info about an product for in app purchase like wether item is consumable or non consumable etc ? SKProduct give me only productidentifier ,price , title and localized title etc ?

Upvotes: 3

Views: 3217

Answers (2)

Jacko
Jacko

Reputation: 13195

This code will get you going: works on the simulator too: https://github.com/boxerab/InAppPurchase

Upvotes: 0

Timothy Walters
Timothy Walters

Reputation: 16874

Since you (as the developer) define which products/items can be "restored" then you should already know if it's a consumable (non-restorable) or non-consumable (restorable) item.

If needed you can make a call to restoreCompletedTransactions to get back information on all non-consumable items the user has purchased (for example if they're running the app on a new phone).

Upvotes: 3

Related Questions