//////////
Search
Duplicate

Initialization (IAP)

태그

1. Initialize IAP with Shopkey

Try to initializing IAP with StovePC.IAPInitialize function with the ShopKey value issued by STOVE. (click here to find more about Shopkey)
When initialized, the product list registered in STOVE Studio is automatically retrieved and is stored in the STOVE PC SDK internal cache.
If calling StovePC.IAPInitialize function fails, you can see the error through StovePCResult and OnError callbacks.
// input parameters // string shopKey : shopKey issued by the stove StovePCResult result = StovePC.IAPInitialize(YOUR_SHOP_KEY); if(result == StovePCResult.NoError) { // handle success }
C++
복사
Below are potential ExternalErrors you might encounter.
ExternalError
Description
500
Internal Server Error ⇒ Please contact STOVE Onboarding Manager
50001
Store does not exist, or is under maintenance ⇒ Please check STOVE Studio
50002
Product does not exist or is unavailable for sale ⇒ Please check STOVE Studio
999999
undefined error ⇒ Please contact STOVE Onboarding Manager

2. Call User Profile

A STOVE user can have up to 3 types of user profile 1) Character No. ⇒ Created per character 2) GUID ⇒ Created per game account 3) Member No. ⇒ Universal STOVE Member No. STOVE PC SDK prioritizes the user information of the product as follows. - Character No. > GUID > Member No.
Use StovePC.SetGameProfile to call users’ profile, such as character information. (including game world information)
When character information is set through the  StovePC.SetGameProfile  function, PC SDK proceeds with purchase based on Character No. when purchasing a product. When it is not set through StovePC.SetGameProfile, PC SDK proceeds purcfhase with GUID or Member No.
Therefore, in order to ensure that the purchasing entity is not colliding with other character information, consider whether to call the StovePC.SetGameProfile API before calling billing service API. Normally, StovePC.SetGameProfile function only needs to be called once per world/character change.