HIVE SDK for C++

Public Types | Static Public Member Functions | List of all members
IAPV4 Class Reference

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

#include <HIVE_IAPV4.h>

Public Types

typedef std::function< void(ResultAPI const &result, std::vector< IAPV4Type > const &marketIDs)> onMarketConnect
 HIVE IAPV4 Market information request result callback. More...
 
typedef std::function< void(ResultAPI const &result, std::vector< IAPV4Product > const &iapV4ProductList, unsigned int balance)> onGetProductInfo
 HIVE IAPV4 Product Information request callback. More...
 
typedef std::function< void(ResultAPI const &result, IAPV4Receipt const &iapV4Receipt)> onPurchase
 Purchase request result callback
Request purchase of market product (marketPid) registered in App Store, Google Store, etc. More...
 
typedef std::function< void(ResultAPI const &result, std::vector< std::reference_wrapper< IAPV4Receipt > > const &iapv4ReceiptList)> onRestore
 HIVE IAPV4 Restore request result callback
It may happen that the item delivery fails due to various situations in the product purchase process. More...
 
typedef std::function< void(ResultAPI const &result, std::string marketPid)> onTransactionFinish
 HIVE IAP v4 Transaction Finish request result callback
More...
 
typedef std::function< void(ResultAPI const &result, std::string marketPid)> onCheckPromotePurchase
 
typedef std::function< void(std::vector< ResultAPI > const &resultList, std::vector< std::string > const &marketPidList)> onTransactionMultiFinish
 HIVE IAP v4 Multiple Transaction Finish request result callback
More...
 
typedef std::function< void(ResultAPI const &result, int balance)> onBalance
 HIVE Lebi Balance request result callback, if it is a Rebi store. More...
 
typedef std::function< void(int responseCode)> onInAppMessages
 Google In-App Offers. More...
 
typedef std::function< void(ResultAPI const &result, IAPV4ConsumeInfoUserAgreement *const info)> onGetConsumeInfoAgreement
 A callback to return the latest consent status and timing for the Consumption Information Transmission Terms
More...
 
typedef std::function< void(ResultAPI const &result, bool didAgree)> onShowConsumeInfoAgreement
 A callback to notify the user’s consent status as the outcome of the popup for Consumption Information transfer terms
More...
 

Static Public Member Functions

static void marketConnect (onMarketConnect listener)
 IAPV4 It initialize IAPV4 Purchase module. More...
 
static void getMarketProductInfo (std::vector< std::string > const &marketPidList, onGetProductInfo listener)
 Apple Appstore It returns information for composition of the product. More...
 
static void getProductInfo (onGetProductInfo listener)
 HIVE IAPV4 It returns information for composition of the product. More...
 
static void getSubscriptionProductInfo (onGetProductInfo listener)
 HIVE IAPV4 It returns information for composition of the product. More...
 
static void purchase (std::string marketPid, std::string iapPayload, onPurchase listener)
 Request purchase of market product (marketPid) registered in App Store, Google Store, etc. More...
 
static void purchase (std::string marketPid, std::string iapPayload, int quantity, onPurchase listener)
 Request purchase of market product (marketPid) registered in App Store, Google Store, etc. More...
 
static void purchaseSubscriptionUpdate (std::string marketPid, std::string oldMarketPid, std::string iapPayload, onPurchase listener)
 Request purchase of market product (marketPid) registered in App Store, Google Store, etc. More...
 
static void purchaseSubscription (IAPV4PurchaseParam param, onPurchase listener)
 Request purchase of market product (marketPid) registered in App Store, Google Store, etc. More...
 
static void restore (onRestore listener)
 HIVE IAPV4 It restore the item that has not been delivered. More...
 
static void restoreSubscription (onRestore listener)
 HIVE IAPV4 It restore the item that has not been delivered. More...
 
static void transactionFinish (std::string marketPid, onTransactionFinish listener)
 HIVE IAP v4 It requests the transaction completion processing for the purchase receipt of the item that have been delivered. More...
 
static void transactionMultiFinish (std::vector< std::string > const &marketPidList, onTransactionMultiFinish 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 showMarketSelection (onMarketConnect 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 getBalanceInfo (onBalance listener)
 It request Lebi balance information. More...
 
static void showCharge (onBalance listener)
 It shows Lebi refill page. More...
 
static void checkPromotePurchase (onCheckPromotePurchase listener)
 Apple AppStore Promote InApp Purchase 동작으로 얻어온 MarketPID를 요청한다. More...
 
static IAPV4Type getSelectedMarket ()
 현재 선택된 마켓 타입을 반환한다. More...
 
static std::string getAccountUuid ()
 현재 계정의 UUIDv3 값을 반환한다. More...
 
static void showInAppMessages (int categoryId, onInAppMessages listener)
 Google In-App Offers. More...
 
static void getConsumeInfoAgreement (onGetConsumeInfoAgreement listener)
 소비정보 전송 약관에 대한 유저의 마지막 동의 상태 및 시기를 반환한다. More...
 
static void showConsumeInfoAgreement (onShowConsumeInfoAgreement listener)
 소비정보 전송 약관 팝업을 노출한다. More...
 

Detailed Description

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


Hive Lebi store is a system that can organize stores and purchase goods in Chinese market. It is operated by Hive itself.

Since
4.4.0
Author
imsunghoon

The documentation for this class was generated from the following file:
Copyright © Com2uS Platform Corporation. All Right Reserved. Terms of Use Privacy Policy