HIVE SDK for Unity3D

Classes | Functions
IAPV4

Classes

class  hive.IAPV4
 Currently, Hive IAP supports Apple AppStore, Google PlayStore, ONEStore, Samsung GalaxyStore, Amazon AppStore, Facebook Cloud Games, Huawei AppConnect, PG, Steam and Hive Lebi. More...
 

Functions

delegate void hive.IAPV4.onIAPV4MarketInfo (ResultAPI result, List< IAPV4Type > iapV4TypeList)
 HIVE IAPV4 Market information request result callback.
 
delegate void hive.IAPV4.onIAPV4ProductInfo (ResultAPI result, List< IAPV4Product > iapV4ProductList, int balance)
 HIVE IAPV4 Product Information request callback.
 
delegate void hive.IAPV4.onIAPV4Purchase (ResultAPI result, IAPV4Receipt iapV4Receipt)
 Purchase request result callback
Request purchase of market product (marketPid) registered in App Store, Google Store, etc.
 
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.
 
delegate void hive.IAPV4.onIAPV4TransactionFinish (ResultAPI result, String marketPid)
 HIVE IAP v4 Transaction Finish request result callback

 
static void hive.IAPV4.marketConnect (onIAPV4MarketInfo listener)
 IAPV4 It initialize IAPV4 Purchase module.
 
static void hive.IAPV4.getMarketProductInfo (List< String > marketPidList, onIAPV4ProductInfo listener)
 Hive IAPV4 It returns information for composition of the market product.
 
static void hive.IAPV4.getProductInfo (onIAPV4ProductInfo listener)
 HIVE IAPV4 It returns information for composition of the product.
 
static void hive.IAPV4.getSubscriptionProductInfo (onIAPV4ProductInfo listener)
 HIVE IAPV4 It returns information for composition of the product.
 
static void hive.IAPV4.purchase (String marketPid, String iapPayload, onIAPV4Purchase listener)
 Request purchase of market product (marketPid) registered in App Store, Google Store, etc.
 
static void hive.IAPV4.purchase (String marketPid, String iapPayload, int quantity, onIAPV4Purchase listener)
 Request purchase of market product (marketPid) registered in App Store, Google Store, etc.
 
static void hive.IAPV4.purchaseSubscriptionUpdate (String marketPid, String oldMarketPid, String iapPayload, onIAPV4Purchase listener)
 Request purchase of market product (marketPid) registered in App Store, Google Store, etc.
 
static void hive.IAPV4.purchaseSubscription (IAPV4PurchaseParam param, onIAPV4Purchase listener)
 Request purchase of market product (marketPid) registered in App Store, Google Store, etc.
 
static void hive.IAPV4.restore (onIAPV4Restore listener)
 HIVE IAPV4 It restore the item that has not been delivered.
 
static void hive.IAPV4.restoreSubscription (onIAPV4Restore listener)
 HIVE IAPV4 It restore the item that has not been delivered.
 
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.
 
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.
 
static IAPV4Type hive.IAPV4.getSelectedMarket ()
 현재 선택된 마켓 타입을 반환한다.
 
static string hive.IAPV4.getAccountUuid ()
 현재 계정의 UUIDv3 값을 반환한다.
 

Detailed Description

Function Documentation

◆ getAccountUuid()

static string hive.IAPV4.getAccountUuid ( )
static

현재 계정의 UUIDv3 값을 반환한다.


Returns the Hive account ID converted to a UUID version 3. return null, if not logged in.

Since
4.16.3.0
Returns
accountUuid

◆ 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

◆ getSelectedMarket()

static IAPV4Type hive.IAPV4.getSelectedMarket ( )
static

현재 선택된 마켓 타입을 반환한다.


얻어온 마켓 타입으로 구매를 진행하도록 한다.

See also
#marketConnect(IAPV4MarketInfoListener)

◆ 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
Request purchase of market product (marketPid) registered in App Store, Google Store, etc.


iapPayload is supplementary information for the purchase request, and it can be checked in Receipt Verification after purchase,
but, in case of purchasing outside of the app, such as a promo code purchase etc., it can not be included in verification result.

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

◆ 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() [1/2]

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

Request purchase of market product (marketPid) registered in App Store, Google Store, etc.


iapPayload is supplementary information for the purchase request, and it can be checked in Receipt Verification after purchase,
but, in case of purchasing outside of the app, such as a promo code purchase etc., it can not be included in verification result.

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

◆ purchase() [2/2]

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

Request purchase of market product (marketPid) registered in App Store, Google Store, etc.


iapPayload is supplementary information for the purchase request, and it can be checked in Receipt Verification after purchase,
but, in case of purchasing outside of the app, such as a promo code purchase etc., it can not be included in verification result.

Parameters
marketPidUnique code registered on the App Store, Google Store or etc.
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

Request purchase of market product (marketPid) registered in App Store, Google Store, etc.


iapPayload is supplementary information for the purchase request, and it can be checked in Receipt Verification after purchase,
but, in case of purchasing outside of the app, such as a promo code purchase etc., it can not be included in verification result. When upgrading or downgrading a subscription-type product, the unique code oldMarketPid of the existing subscription product must be entered.

Parameters
paramA collection of parameters required for purchase.
listenerResult of API call
Since
4.16.4.0

◆ purchaseSubscriptionUpdate()

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

Request purchase of market product (marketPid) registered in App Store, Google Store, etc.


iapPayload is supplementary information for the purchase request, and it can be checked in Receipt Verification after purchase,
but, in case of purchasing outside of the app, such as a promo code purchase etc., it can not be included in verification result. When upgrading or downgrading a subscription-type product, the unique code oldMarketPid of the existing subscription product must be entered.

Parameters
marketPidUnique code registered on the App Store or Google Store.
oldMarketPidUnique code of existing subscription product
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