-
Notifications
You must be signed in to change notification settings - Fork 0
Store
You can sell items on Pankia. Every item should be registered as In-App Purchase item on iTunes Connect.
Pankia provides functions for supporting selling items in your games. Pankia uses StoreKit APIs for payments, and manages purchase history and ownerships of purchased items for user on the Pankia server that will be automatically restored after re-installing application.
Selling item feature on Pankia obeys Server Product Model which is described in StoreKit Programming Guide
Create new item on Pankia.
Create new In-App Purchase item on iTunes Connect. Determine the price and other information.
Create new merchandise on Pankia admin site. The ID of merchandise should be same as the product identifier of IAP product on iTunes Connect. A merchandise can contain a set of an item.
Returns an array containing available merchandises as PNMerchandise class.
Begins payment transaction using StoreKit APIs. If user cancelled purchasing or some error occured, onFailure block is called.
Payment transaction may be cancelled by quitting app while payment process is go on. Cancelled transactions will be resumed when user tries to buy item again or some events occured on StoreKit process (This behavior is due to the specification of StoreKit). Pankia will catch them and finish transactions automatically (It increases quantity of item).
Your game may receive unknownPurchasingFinished: method when cancelled transaction was restored by Pankia automatically on unexpected timings.
Be sure to submit your IAP products with the app submission. Merchandise will not be available until IAP product become Ready for Sale.
You can't use StoreKit APIs directly in your game code when using store feature of Pankia.