Skip to content
shunter1112 edited this page Jul 27, 2011 · 2 revisions

You can sell items on Pankia. Every item should be registered as In-App Purchase item on iTunes Connect.

Table of Contents

Overview

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

Registering item

Create new item on Pankia

Create new item on Pankia.

Create new IAP product on iTunes Connect

Create new In-App Purchase item on iTunes Connect. Determine the price and other information.

Create new merchandise on Pankia

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.

Client API

+[Pankia]

Returns an array containing available merchandises as PNMerchandise class.

+[Pankia]

Begins payment transaction using StoreKit APIs. If user cancelled purchasing or some error occured, onFailure block is called.

Notes

Cancelled transaction

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.

IAP product should be Ready for Sale

Be sure to submit your IAP products with the app submission. Merchandise will not be available until IAP product become Ready for Sale.

StoreKit and Pankia

You can't use StoreKit APIs directly in your game code when using store feature of Pankia.