HIVE SDK for Android

Classes | Functions
IAPV4

Classes

interface  com.hive.IAPV4.IAPV4MarketInfoListener
 HIVE IAPV4 에서 마켓의 구성을 위한 정보 조회 결과 통지 More...
 
interface  com.hive.IAPV4.IAPV4ProductInfoListener
 HIVE IAPV4 상품 정보 조회 결과 통지 More...
 
interface  com.hive.IAPV4.IAPV4PurchaseListener
 상품 결제 시도 결과 통지
HIVE IAPV4 의 상품 구매는 App Store, Google Store 에 등록된 마켓 상품 (marketPid) 을 요청하게 된다. More...
 
interface  com.hive.IAPV4.IAPV4RestoreListener
 HIVE IAPV4 상품에 대한 미지급된 아이템 지급을 요청 결과 통지
상품 구매 과정에서 여러가지 상황으로 인하여 아이템 지급을 실패하는 경우가 발생할 수 있다. More...
 
interface  com.hive.IAPV4.IAPV4TransactionFinishListener
 HIVE IAP v4에서 상품에 대한 지급 완료 후 결제 트랜잭션을 종료하기 위한 요청 결과 통지
More...
 
interface  com.hive.IAPV4.IAPV4BalanceInfoListener
 HIVE 러비 상점일 경우 잔액 확인 결과 통지 More...
 
interface  com.hive.IAPV4.IAPV4CheckPromotePurchaseListener
 
enum  com.hive.IAPV4.IAPV4Type
 결제 마켓 형태 More...
 
class  com.hive.IAPV4.IAPV4Product
 HIVE IAP 백오피스에서 생성한 상품 정보
마켓에 등록된 상품(Market Pid) 의 정보를 포함한다. More...
 
class  com.hive.IAPV4.IAPV4Receipt
 purchase(String, String, IAPV4PurchaseListener)restore(IAPV4RestoreListener) API 에서 받을 수 있는 결과 정보. More...
 
class  com.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

static void com.hive.IAPV4.marketConnect (IAPV4MarketInfoListener listener)
 IAPV4 It initialize IAPV4 Purchase module. More...
 
static void com.hive.IAPV4.getProductInfo (IAPV4ProductInfoListener listener)
 HIVE IAPV4 It returns information for composition of the product. More...
 
static void com.hive.IAPV4.getSubscriptionProductInfo (IAPV4ProductInfoListener listener)
 HIVE IAPV4 It returns information for composition of the product. More...
 
static void com.hive.IAPV4.purchase (String marketPid, String additionalInfo, IAPV4PurchaseListener listener)
 HIVE IAPV4 The purchase will require a marketPid from the App Store and Google Store. More...
 
static void com.hive.IAPV4.purchaseSubscriptionUpdate (String marketPid, String oldMarketPid, String additionalInfo, IAPV4PurchaseListener listener)
 HIVE IAPV4 The purchase will require a marketPid from the App Store and Google Store. More...
 
static void com.hive.IAPV4.restore (IAPV4RestoreListener listener)
 HIVE IAPV4 It restore the item that has not been delivered. More...
 
static void com.hive.IAPV4.restoreSubscription (IAPV4RestoreListener listener)
 HIVE IAPV4 It restore the item that has not been delivered. More...
 
static void com.hive.IAPV4.transactionFinish (String marketPid, IAPV4TransactionFinishListener listener)
 HIVE IAP v4 It requests the transaction completion processing for the purchase receipt of the item that have been delivered. More...
 
static void com.hive.IAPV4.transactionMultiFinish (List< String > marketPidList, IAPV4TransactionMultiFinishListener listener)
 HIVE IAP v4 It requests the multiple transaction completion processing for the purchase receipt of the item that have been delivered. More...
 
static void com.hive.IAPV4.showMarketSelection (IAPV4MarketInfoListener listener)
 It shows a UI to select a Lebi store or a Google store..
If the Google Store and the HIVE Lebi store are available at the same time, you should expose the store selection screen to allow the user to select a store. More...
 
static void com.hive.IAPV4.getBalanceInfo (IAPV4BalanceInfoListener listener)
 It request Lebi balance information. More...
 
static void com.hive.IAPV4.showCharge (IAPV4BalanceInfoListener listener)
 It shows Lebi refill page. More...
 
static void com.hive.IAPV4.checkPromotePurchase (IAPV4CheckPromotePurchaseListener listener)
 
void com.hive.IAPV4.IAPV4MarketInfoListener.onIAPV4MarketInfo (ResultAPI result, List< IAPV4Type > iapV4TypeList)
 HIVE IAPV4 Market information request result callback. More...
 
void com.hive.IAPV4.IAPV4ProductInfoListener.onIAPV4ProductInfo (ResultAPI result, List< IAPV4Product > iapV4ProductList, int balance)
 HIVE IAPV4 Product Information request callback. More...
 
void com.hive.IAPV4.IAPV4PurchaseListener.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...
 
void com.hive.IAPV4.IAPV4RestoreListener.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...
 
void com.hive.IAPV4.IAPV4TransactionFinishListener.onIAPV4TransacionFinish (ResultAPI result, String marketPid)
 HIVE IAP v4 Transaction Finish request result callback
More...
 
void com.hive.IAPV4.IAPV4BalanceInfoListener.onIAPV4Balance (ResultAPI result, int balance)
 HIVE Lebi Balance request result callback, if it is a Rebi store. More...
 
void com.hive.IAPV4.IAPV4CheckPromotePurchaseListener.onIAPV4CheckPromotePurchase (ResultAPI result, String marketPid)
 

Detailed Description

Function Documentation

§ checkPromotePurchase()

static void com.hive.IAPV4.checkPromotePurchase ( IAPV4CheckPromotePurchaseListener  listener)
static
Parameters
listenerAPI 결과 통지

§ getBalanceInfo()

static void com.hive.IAPV4.getBalanceInfo ( IAPV4BalanceInfoListener  listener)
static

It request Lebi balance information.

Parameters
listenerResult of API call

§ getProductInfo()

static void com.hive.IAPV4.getProductInfo ( IAPV4ProductInfoListener  listener)
static

HIVE IAPV4 It returns information for composition of the product.


Parameters
listenerResult of API call

§ getSubscriptionProductInfo()

static void com.hive.IAPV4.getSubscriptionProductInfo ( IAPV4ProductInfoListener  listener)
static

HIVE IAPV4 It returns information for composition of the product.


Parameters
listenerResult of API call
Since
4.11.6

§ marketConnect()

static void com.hive.IAPV4.marketConnect ( IAPV4MarketInfoListener  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

§ onIAPV4Balance()

void com.hive.IAPV4.IAPV4BalanceInfoListener.onIAPV4Balance ( ResultAPI  result,
int  balance 
)

HIVE Lebi Balance request result callback, if it is a Rebi store.

Parameters
resultResult of API call
balanceHIVE Lebi balance

§ onIAPV4CheckPromotePurchase()

void com.hive.IAPV4.IAPV4CheckPromotePurchaseListener.onIAPV4CheckPromotePurchase ( ResultAPI  result,
String  marketPid 
)
Parameters
resultAPI 호출 결과
marketPidMarket PID

§ onIAPV4MarketInfo()

void com.hive.IAPV4.IAPV4MarketInfoListener.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(IAPV4MarketInfoListener)

§ onIAPV4ProductInfo()

void com.hive.IAPV4.IAPV4ProductInfoListener.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(IAPV4ProductInfoListener)

§ onIAPV4Purchase()

void com.hive.IAPV4.IAPV4PurchaseListener.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.


additionalInfo 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 additionalInfo.
See also
purchase(String, String, IAPV4PurchaseListener)

§ onIAPV4Restore()

void com.hive.IAPV4.IAPV4RestoreListener.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 additionalInfo
See also
restore(IAPV4RestoreListener)

§ onIAPV4TransacionFinish()

void com.hive.IAPV4.IAPV4TransactionFinishListener.onIAPV4TransacionFinish ( 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, IAPV4TransactionFinishListener)

§ purchase()

static void com.hive.IAPV4.purchase ( String  marketPid,
String  additionalInfo,
IAPV4PurchaseListener  listener 
)
static

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


additionalInfo 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.
additionalInfoA string containing supplementary information about the purchase request, specified by the developer.
listenerResult of API call

§ purchaseSubscriptionUpdate()

static void com.hive.IAPV4.purchaseSubscriptionUpdate ( String  marketPid,
String  oldMarketPid,
String  additionalInfo,
IAPV4PurchaseListener  listener 
)
static

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


additionalInfo 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.
oldMarketPid
additionalInfoA string containing supplementary information about the purchase request, specified by the developer.
listenerResult of API call
Since
4.11.6

§ restore()

static void com.hive.IAPV4.restore ( IAPV4RestoreListener  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 com.hive.IAPV4.restoreSubscription ( IAPV4RestoreListener  listener)
static

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


Parameters
listenerAPI 결과 통지
Since
4.11.6

§ showCharge()

static void com.hive.IAPV4.showCharge ( IAPV4BalanceInfoListener  listener)
static

It shows Lebi refill page.

Parameters
listenerResult of API call

§ showMarketSelection()

static void com.hive.IAPV4.showMarketSelection ( IAPV4MarketInfoListener  listener)
static

It shows a UI to select a Lebi store or a Google store..
If the Google Store and the HIVE Lebi store are available at the same time, you should expose the store selection screen to allow the user to select a store.

Parameters
listenerResult of API call

§ transactionFinish()

static void com.hive.IAPV4.transactionFinish ( String  marketPid,
IAPV4TransactionFinishListener  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
IAPV4TransactionFinishListener::transactionFinish(String, IAPV4TransactionFinishListener)
IAPV4TransactionMultiFinishListener::transactionMultiFinish(List, IAPV4TransactionMultiFinishListener)

§ transactionMultiFinish()

static void com.hive.IAPV4.transactionMultiFinish ( List< String >  marketPidList,
IAPV4TransactionMultiFinishListener  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
IAPV4TransactionMultiFinishListener::transactionMultiFinish(List, IAPV4TransactionMultiFinishListener)
IAPV4TransactionFinishListener::transactionFinish(String, IAPV4TransactionFinishListener)
Copyright © GAMEVIL COM2US PLATFORM Inc. All Right Reserved. Terms of Use Privacy Policy