HIVE SDK for Unity3D

Classes | Functions
IAPV4

Classes

class  hive.IAPV4
 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...
 

Functions

delegate void hive.IAPV4.onIAPV4MarketInfo (ResultAPI result, List< IAPV4Type > iapV4TypeList)
 HIVE IAPV4 Market information request result callback. More...
 
delegate void hive.IAPV4.onIAPV4ProductInfo (ResultAPI result, List< IAPV4Product > iapV4ProductList, int balance)
 HIVE IAPV4 Product Information request callback. More...
 
delegate void hive.IAPV4.onIAPV4Purchase (ResultAPI result, IAPV4Receipt iapV4Receipt)
 Purchase request result callback
The purchase of HIVE IAPV4 will require a marketPid registered in the App Store and Google Store. More...
 
delegate void hive.IAPV4.onIAPV4Restore (ResultAPI result, List< IAPV4Receipt > iapv4ReceiptList)
 HIVE IAPV4 Restore request result callback
It may happen that the item delivery fails due to various situations in the product purchase process. More...
 
delegate void hive.IAPV4.onIAPV4TransactionFinish (ResultAPI result, String marketPid)
 HIVE IAP v4 Transaction Finish request result callback
More...
 
static void hive.IAPV4.marketConnect (onIAPV4MarketInfo listener)
 IAPV4 It initialize IAPV4 Purchase module. More...
 
static void hive.IAPV4.getMarketProductInfo (List< String > marketPidList, onIAPV4ProductInfo listener)
 Hive IAPV4 It returns information for composition of the market product. More...
 
static void hive.IAPV4.getProductInfo (onIAPV4ProductInfo listener)
 HIVE IAPV4 It returns information for composition of the product. More...
 
static void hive.IAPV4.getSubscriptionProductInfo (onIAPV4ProductInfo listener)
 HIVE IAPV4 It returns information for composition of the product. More...
 
static void hive.IAPV4.purchase (String marketPid, String iapPayload, onIAPV4Purchase listener)
 HIVE IAPV4 The purchase will require a marketPid from the App Store and Google Store. More...
 
static void hive.IAPV4.purchaseSubscriptionUpdate (String marketPid, String oldMarketPid, String iapPayload, onIAPV4Purchase listener)
 HIVE IAPV4 The purchase will require a marketPid from the App Store and Google Store. More...
 
static void hive.IAPV4.purchaseSubscription (IAPV4PurchaseParam param, onIAPV4Purchase listener)
 HIVE IAPV4 The purchase will require a marketPid from the App Store and Google Store. More...
 
static void hive.IAPV4.restore (onIAPV4Restore listener)
 HIVE IAPV4 It restore the item that has not been delivered. More...
 
static void hive.IAPV4.restoreSubscription (onIAPV4Restore listener)
 HIVE IAPV4 It restore the item that has not been delivered. More...
 
static void hive.IAPV4.transactionFinish (String marketPid, onIAPV4TransactionFinish listener)
 HIVE IAP v4 It requests the transaction completion processing for the purchase receipt of the item that have been delivered. More...
 
static void hive.IAPV4.transactionMultiFinish (List< String > marketPidList, onIAPV4TransactionMultiFinish listener)
 HIVE IAP v4 It requests the multiple transaction completion processing for the purchase receipt of the item that have been delivered. More...
 

Detailed Description

Function Documentation

◆ getMarketProductInfo()

static void hive.IAPV4.getMarketProductInfo ( List< String >  marketPidList,
onIAPV4ProductInfo  listener 
)
static

Hive IAPV4 It returns information for composition of the market product.


Parameters
listenerResult of API call

◆ getProductInfo()

static void hive.IAPV4.getProductInfo ( onIAPV4ProductInfo  listener)
static

HIVE IAPV4 It returns information for composition of the product.


Parameters
listenerResult of API call

◆ getSubscriptionProductInfo()

static void hive.IAPV4.getSubscriptionProductInfo ( onIAPV4ProductInfo  listener)
static

HIVE IAPV4 It returns information for composition of the product.


Parameters
listenerResult of API call
Since
4.11.6

◆ marketConnect()

static void hive.IAPV4.marketConnect ( onIAPV4MarketInfo  listener)
static

IAPV4 It initialize IAPV4 Purchase module.


When HIVE IAPV4 is initialized, it sends a list of available market information in the result callback.
This list of market information means the market available on the game client.

Parameters
listenerResult of API call

◆ onIAPV4MarketInfo()

delegate void hive.IAPV4.onIAPV4MarketInfo ( ResultAPI  result,
List< IAPV4Type >  iapV4TypeList 
)

HIVE IAPV4 Market information request result callback.

Parameters
resultResult of API call
iapV4TypeList사용 가능한 마켓 정보의 목록
This list of market information means the market available on the game client.
If there is more than one market list, you must provide a screen that display the available market list to the user so that the user can select a store.
See also
marketConnect(onIAPV4MarketInfo)

◆ onIAPV4ProductInfo()

delegate void hive.IAPV4.onIAPV4ProductInfo ( ResultAPI  result,
List< IAPV4Product >  iapV4ProductList,
int  balance 
)

HIVE IAPV4 Product Information request callback.

Parameters
resultResult of API call
iapV4ProductListProduct Information
balanceBalance information for HIVE Lebi Market If Lebi Market enabled.
See also
getProductInfo(onIAPV4ProductInfo)

◆ onIAPV4Purchase()

delegate void hive.IAPV4.onIAPV4Purchase ( ResultAPI  result,
IAPV4Receipt  iapV4Receipt 
)

Purchase request result callback
The purchase of HIVE IAPV4 will require a marketPid registered in the App Store and Google Store.


iapPayload is supplementary information for the purchase request, and is included in the purchase completion callback,
but, in case of purchasing outside of the app, such as a promo code purchase etc., it can not be included in iapV4Receipt.

Parameters
resultResult of API call
iapV4ReceiptIt includes the purchased product information and iapPayload.
See also
purchase(String, String, onIAPV4Purchase)

◆ onIAPV4Restore()

delegate void hive.IAPV4.onIAPV4Restore ( ResultAPI  result,
List< IAPV4Receipt >  iapv4ReceiptList 
)

HIVE IAPV4 Restore request result callback
It may happen that the item delivery fails due to various situations in the product purchase process.


In order to prepare for this situation, you should request to deliver the item that has not been delivered.

Parameters
resultResult of API call
iapv4ReceiptListIt includes the purchased product information and iapPayload
See also
restore(onIAPV4Restore)

◆ onIAPV4TransactionFinish()

delegate void hive.IAPV4.onIAPV4TransactionFinish ( ResultAPI  result,
String  marketPid 
)

HIVE IAP v4 Transaction Finish request result callback

Parameters
resultResult of API call
marketPidmarketPid of the product whose transaction ended
See also
transactionFinish(String, onIAPV4TransactionFinish)

◆ purchase()

static void hive.IAPV4.purchase ( String  marketPid,
String  iapPayload,
onIAPV4Purchase  listener 
)
static

HIVE IAPV4 The purchase will require a marketPid from the App Store and Google Store.


iapPayload is supplementary information for the purchase request, and is included in the purchase completion callback,
but, in case of purchasing outside of the app, such as a promo code purchase etc., it can not be included in iapV4Receipt.

Parameters
marketPidUnique code registered on the App Store or Google Store.
iapPayloadA string containing supplementary information about the purchase request, specified by the developer.
listenerResult of API call

◆ purchaseSubscription()

static void hive.IAPV4.purchaseSubscription ( IAPV4PurchaseParam  param,
onIAPV4Purchase  listener 
)
static

HIVE IAPV4 The purchase will require a marketPid from the App Store and Google Store.


iapPayload is supplementary information for the purchase request, and is included in the purchase completion callback,
but, in case of purchasing outside of the app, such as a promo code purchase etc., it can not be included in iapV4Receipt.

Parameters
paramInformation about the purchase request.
listenerResult of API call
Since
4.16.4

◆ purchaseSubscriptionUpdate()

static void hive.IAPV4.purchaseSubscriptionUpdate ( String  marketPid,
String  oldMarketPid,
String  iapPayload,
onIAPV4Purchase  listener 
)
static

HIVE IAPV4 The purchase will require a marketPid from the App Store and Google Store.


iapPayload is supplementary information for the purchase request, and is included in the purchase completion callback,
but, in case of purchasing outside of the app, such as a promo code purchase etc., it can not be included in iapV4Receipt.

Parameters
marketPidUnique code registered on the App Store or Google Store.
oldMarketPidUnique code registered on the App Store or Google Store.
iapPayloadA string containing supplementary information about the purchase request, specified by the developer.
listenerResult of API call
Since
4.11.6

◆ restore()

static void hive.IAPV4.restore ( onIAPV4Restore  listener)
static

HIVE IAPV4 It restore the item that has not been delivered.


It may happen that the item delivery fails due to various situations in the product purchase process.
In order to prepare for this situation, you should request to deliver the item that has not been delivered.

Parameters
listenerAPI 결과 통지

◆ restoreSubscription()

static void hive.IAPV4.restoreSubscription ( onIAPV4Restore  listener)
static

HIVE IAPV4 It restore the item that has not been delivered.


Parameters
listenerResult of API call
Since
4.11.6

◆ transactionFinish()

static void hive.IAPV4.transactionFinish ( String  marketPid,
onIAPV4TransactionFinish  listener 
)
static

HIVE IAP v4 It requests the transaction completion processing for the purchase receipt of the item that have been delivered.


At the completion of item delivery after purchasing or restoring, this API should be called to complete the purchase on the market.

Warning
If you do not notify the completion of the purchase to the market after payment has been made, it will be left as an unpaid item..
Since the unpaid items will continue to be recovered until the transactionFinish API call, you should check for duplicate receipts.
Parameters
marketPidThe unique ID of the item for which the transaction is to be completed.
listenerResult of API call
See also
onIAPV4TransactionFinish
#transactionMultiFinish(List, onIAPV4TransactionMultiFinish)

◆ transactionMultiFinish()

static void hive.IAPV4.transactionMultiFinish ( List< String >  marketPidList,
onIAPV4TransactionMultiFinish  listener 
)
static

HIVE IAP v4 It requests the multiple transaction completion processing for the purchase receipt of the item that have been delivered.


At the completion of item delivery after purchasing or restoring, this API should be called to complete the purchase on the market.

Warning
If you do not notify the completion of the purchase to the market after payment has been made, it will be left as an unpaid item..
Since the unpaid items will continue to be recovered until the transactionFinish API call, you should check for duplicate receipts.
Parameters
marketPidListThe list of unique ID of the item for which the transaction is to be completed.
listenerResult of API call
See also
onIAPV4TransactionMultiFinish
transactionFinish(String, onIAPV4TransactionFinish)
Copyright © Com2uS Platform Corporation. All Right Reserved. Terms of Use Privacy Policy