HIVE SDK for C++

Classes | Typedefs | Enumerations | Functions
IAP

HIVE IAP can minimize the development costs of the market-specific purchase process and collect purchase logs consistently to provide information to business, development, and management departments. More...

Classes

class  IAP
 HIVE IAP can minimize the development costs of the market-specific purchase process and collect purchase logs consistently to provide information to business, development, and management departments. More...
 
class  IAPShop
 Store information configured in the HIVE IAP back office. More...
 
class  IAPProduct
 Product information created by HIVE IAP back office
It include (Market Pid) registered in the market(AppStore, PlayStore) and (Game Pid) registered in the HIVE IAP back office. More...
 
class  IAPReceipt
 purchase() 나 restoreReceipt() API 에서 받을 수 있는 결과 정보. More...
 

Typedefs

typedef std::function< void(ResultAPI const &result, std::vector< IAPType > const &iapTypeList)> IAP::onIAPMarketInfo
 Result of information inquiry for HIVE IAP to organize stores and products. More...
 
typedef std::function< void(ResultAPI const &result, IAPShop const &iapShop, int balance)> IAP::onIAPShopInfo
 Result of shop information inquiry configured in HIVE IAP back office. More...
 
typedef std::function< void(ResultAPI const &result, IAPProduct const &product, std::string const &transactionId)> IAP::onIAPPurchase
 Result of IAP purchase
Products ID are classified into two, one is 'marketPid' registered in Apple AppStore or Google PlayStore, the other is gamePid registered in HIVE IAP back office. More...
 
typedef std::function< void(ResultAPI const &result, IAPReceipt const &receipt)> IAP::onIAPPurchaseReceipt
 Result of IAP purchase
Products ID are classified into two, one is 'marketPid' registered in Apple AppStore or Google PlayStore, the other is gamePid registered in HIVE IAP back office. More...
 
typedef std::function< void(ResultAPI const &result, std::vector< IAPReceipt > const &receipts)> IAP::onIAPRestoreReceipt
 Result of Restore HIVE IAP product which is not sent to user
In the process of purchasing a product, it may happen that the item fails to be delivered due to various situations. More...
 
typedef std::function< void(ResultAPI const &result, int balance)> IAP::onIAPBalanceInfo
 Result of balance request, if it is HIVE Lebi store. More...
 
typedef std::function< void(ResultAPI const &result, std::string gamePid)> IAP::onCheckPromotePurchase
 iTunes에서 Promotional In-App-Purchase를 통한 앱구매 예약에 대한 통지 More...
 

Enumerations

enum class  IAPType { IAPType::APPLE_APPSTORE = 1 , IAPType::GOOGLE_PLAYSTORE , IAPType::HIVE_LEBI , IAPType::ONESTORE }
 Market type. More...
 

Functions

static void IAP::initialize (onIAPMarketInfo listener)
 Initialize HIVE IAP
HIVE IAP initialization will deliver a list of available market information in the result. More...
 
static void IAP::getShopInfo (std::string locationCode, onIAPShopInfo listener)
 Return information for the configuration of shops and products
Stores can be exposed general shops, spot shops and event shops according to their sales strategy. More...
 
static void IAP::purchase (std::string gamePid, std::string additionalInfo, onIAPPurchaseReceipt listener)
 Purchase Item Products ID are classified into two, one is 'marketPid' registered in Apple AppStore or Google PlayStore, the other is 'pid' registered in HIVE IAP back office. More...
 
static void IAP::restoreReceipt (onIAPRestoreReceipt listener)
 Restore HIVE IAP product which is not sent to user. More...
 
static void IAP::showMarketSelection (onIAPMarketInfo listener)
 Launches a window to select a lebi store or a Google Play Store. More...
 
static void IAP::getBalanceInfo (onIAPBalanceInfo listener)
 Request your balance information for HIVE Lebi store. More...
 
static void IAP::showCharge (onIAPBalanceInfo listener)
 Show HIVE Lebi Store redeem page(Android only.) More...
 

Detailed Description

HIVE IAP can minimize the development costs of the market-specific purchase process and collect purchase logs consistently to provide information to business, development, and management departments.

JNI 환경변수와 JavaVM을 얻을 수 있는 클래스이다.


* Currently, HIVE IAP supports Apple App Store, Google Play Store, One Store (https://www.tstore.co.kr) and HIVE Lobby (Lebi).
HIVE LIVE (Lebi) store is a system that can organize stores and purchase goods in Chinese market. It is operated by HIVE itself.


안드로이드에서만 사용된다.

Typedef Documentation

◆ onCheckPromotePurchase

typedef std::function<void(ResultAPI const & result, std::string gamePid)> IAP::onCheckPromotePurchase

iTunes에서 Promotional In-App-Purchase를 통한 앱구매 예약에 대한 통지

Parameters
resultAPI call result
gamePid구매 예약한 상점아이템의 gamePid

◆ onIAPBalanceInfo

typedef std::function<void(ResultAPI const & result, int balance)> IAP::onIAPBalanceInfo

Result of balance request, if it is HIVE Lebi store.

Parameters
resultAPI call result
balanceBalance of HIVE Lebi store

◆ onIAPMarketInfo

typedef std::function<void(ResultAPI const & result, std::vector<IAPType> const & iapTypeList)> IAP::onIAPMarketInfo

Result of information inquiry for HIVE IAP to organize stores and products.

Parameters
resultAPI call result
iapTypeListList of available market information
This list of market information means the market available to the game client.
If there is more than one market list, you should provide a screen that allows the user to select the store.

◆ onIAPPurchase

typedef std::function<void(ResultAPI const & result, IAPProduct const & product, std::string const & transactionId)> IAP::onIAPPurchase

Result of IAP purchase
Products ID are classified into two, one is 'marketPid' registered in Apple AppStore or Google PlayStore, the other is gamePid registered in HIVE IAP back office.


The purchase of the HIVE IAP will require the gamePid registered in the HIVE IAP back office. (Note: You must call restore() before attempting a new purchase so that you can deliver an item that has not been delivered)

Parameters
resultAPI call result
Deprecated:
use onIAPPurchaseReceipt instead.

◆ onIAPPurchaseReceipt

typedef std::function<void(ResultAPI const & result, IAPReceipt const & receipt)> IAP::onIAPPurchaseReceipt

Result of IAP purchase
Products ID are classified into two, one is 'marketPid' registered in Apple AppStore or Google PlayStore, the other is gamePid registered in HIVE IAP back office.


The purchase of the HIVE IAP will require the gamePid registered in the HIVE IAP back office. (Note: You must call restore() before attempting a new purchase so that you can deliver an item that has not been delivered)

◆ onIAPRestoreReceipt

typedef std::function<void(ResultAPI const & result, std::vector<IAPReceipt> const & receipts)> IAP::onIAPRestoreReceipt

Result of Restore HIVE IAP product which is not sent to user
In the process of purchasing a product, it may happen that the item fails to be delivered due to various situations.


In order to prepare for this situation, you must restore for the item.

Parameters
resultAPI call result
receipts구매 성공한 상품 정보 리스트

◆ onIAPShopInfo

typedef std::function<void(ResultAPI const & result, IAPShop const & iapShop, int balance)> IAP::onIAPShopInfo

Result of shop information inquiry configured in HIVE IAP back office.

Parameters
resultAPI call result
iapShopShop information
balanceBalance information for HIVE Lebi stores

Enumeration Type Documentation

◆ IAPType

enum class IAPType
strong

Market type.

Enumerator
APPLE_APPSTORE 

APPLE_APPSTORE Apple App Store.

GOOGLE_PLAYSTORE 

GOOGLE_PLAYSTORE Google Play Store.

HIVE_LEBI 

HIVE_LEBI HIVE Lebi.

ONESTORE 

ONESTORE OneStore.

Function Documentation

◆ getBalanceInfo()

static void IAP::getBalanceInfo ( onIAPBalanceInfo  listener)
static

Request your balance information for HIVE Lebi store.

(Android only.)

Parameters
listenerAPI call result listener

◆ getShopInfo()

static void IAP::getShopInfo ( std::string  locationCode,
onIAPShopInfo  listener 
)
static

Return information for the configuration of shops and products
Stores can be exposed general shops, spot shops and event shops according to their sales strategy.


Spot shops and event shops set the location code in the HIVE back office and insert the location code at the exposure location of the game.

Parameters
locationCodeStore location code set in back office
listenerAPI call result listener

◆ initialize()

static void IAP::initialize ( onIAPMarketInfo  listener)
static

Initialize HIVE IAP
HIVE IAP initialization will deliver a list of available market information in the result.


This list of market information means the market available on the game client.

Parameters
listenerAPI call result listener

◆ purchase()

static void IAP::purchase ( std::string  gamePid,
std::string  additionalInfo,
onIAPPurchaseReceipt  listener 
)
static

Purchase Item Products ID are classified into two, one is 'marketPid' registered in Apple AppStore or Google PlayStore, the other is 'pid' registered in HIVE IAP back office.


The purchase of the HIVE IAP will require the 'pid' registered in the HIVE IAP back office (Note: You must call restore() before attempting a new purchase so that you can deliver an item that has not been delivered)

Parameters
gamePidProduct specific code managed by HIVE IAP system.
additionalInfo구매 요청에 대한 보충 정보를 포함한 문자열로, 개발자가 지정합니다.
listenerAPI call result handler

◆ restoreReceipt()

static void IAP::restoreReceipt ( onIAPRestoreReceipt  listener)
static

Restore HIVE IAP product which is not sent to user.


In the process of purchasing a product, it may happen that the item fails to be delivered due to various situations.
In order to prepare for this situation, you must restore for the item.

Parameters
listenerAPI call result listener

◆ showCharge()

static void IAP::showCharge ( onIAPBalanceInfo  listener)
static

Show HIVE Lebi Store redeem page(Android only.)

Parameters
listenerAPI call result listener

◆ showMarketSelection()

static void IAP::showMarketSelection ( onIAPMarketInfo  listener)
static

Launches a window to select a lebi store or a Google Play Store.

(Android only.)
If the Google Play Store and the HIVE LIVE store are available at the same time, you should expose the store selection screen so that the user can select a store.

Parameters
listenerAPI call result listener
Copyright © Com2uS Platform Corporation. All Right Reserved. Terms of Use Privacy Policy