Unity IAP initialize not work on Windows Store
Hi, I'm new to Unity IAP for Windows Store.
I've followed the setup of the windows store for Unity IAP here https://docs.unity3d.com/Manual/UnityIAPWindowsConfiguration.html.
Everything works fine when I enable local testing. (set useMockBillingSystem = true)
But after I configure on windows store and to test real IAP purchasing, there is an exception when I initialize the Unity IAP in Visual Studio. There are no callbacks for initialized failed or initialize success. I've checked that app and IAPs have completed Certification and are both in the Store status product ids are all correct.
Here is the exception message from VS2018 is: (I build with il2cpp backend)
info: (0x80070002) [WinStoreAuth::AuthenticationInternal::FindCachedStorePrimaryAccount] \winstoreauth.cpp(2128)\Windows.ApplicationModel.Store.dll!00007FFA69732208: (caller: 00007FFA6972B7C9) ReturnHr(21) tid(97e8) 80070002 The system cannot find the file specified. [WinStoreAuth::AuthenticationInternal::FindCachedStorePrimaryAccount] onecore\ds\security\tokenbroker\pluginmgr\lib\plugreg.cpp(223)\Windows.Security.Authentication.Web.Core.dll!00007FFA73EB4A99: (caller: 00007FFA73EB3CCA) ReturnHr(6) tid(69e8) 80090013 Invalid provider specified. Exception thrown at 0x00007FFA9CD7A388 (KernelBase.dll) in RuntimeBroker.exe: 0x40080201: WinRT originate error (parameters: 0x0000000080070057, 0x000000000000002C, 0x0000004DFA5FEEF0). info: (0x80070525) [WinStoreAuth::AuthenticationInternal::CreateGoldenAccountTokenRequest] \winstoreauth.cpp(1588)\Windows.ApplicationModel.Store.dll!00007FFA69732122: (caller: 00007FFA6972B876) ReturnHr(22) tid(97e8) 80070525 The specified account does not exist. [WinStoreAuth::AuthenticationInternal::CreateGoldenAccountTokenRequest] info: (0x80070525) [WinStoreAuth::AuthenticationInternal::CaptureGoldenAccountTicket] \winstoreauth.cpp(2090)\Windows.ApplicationModel.Store.dll!00007FFA69732142: (caller: 00007FFA6972B876) ReturnHr(23) tid(97e8) 80070525 The specified account does not exist. [WinStoreAuth::AuthenticationInternal::CaptureGoldenAccountTicket] info: (0x80070525) [WinStoreAuth::AuthenticationInternal::GetStorePrimaryAccountTicketForUri] \winstoreauth.cpp(305)\Windows.ApplicationModel.Store.dll!00007FFA6972B8B7: (caller: 00007FFA6972B569) ReturnHr(24) tid(97e8) 80070525 The specified account does not exist. [WinStoreAuth::AuthenticationInternal::GetStorePrimaryAccountTicketForUri] Exception thrown at 0x00007FFA9CD7A388 (KernelBase.dll) in RuntimeBroker.exe: 0x40080201: WinRT originate error (parameters: 0x000000008000000E, 0x0000000000000043, 0x0000004DFA4FF060). Exception thrown at 0x00007FFA9CD7A388 (KernelBase.dll) in RuntimeBroker.exe: 0x40080201: WinRT originate error (parameters: 0x000000008000000E, 0x0000000000000043, 0x0000004DFA4FF060). Exception thrown at 0x00007FFA9CD7A388 (KernelBase.dll) in RuntimeBroker.exe: 0x40080201: WinRT originate error (parameters: 0x000000008000000E, 0x0000000000000043, 0x0000004DFA4FF060). :Listing Information (after filtering, CV = dBGgAWGZekuE0xnN.7.2): [DumpListingToDebugger] : AppId: 6EA074E7-0180-460C-B308-21DFFBC079B7, Name: SDK Harness [DumpListingToDebugger] : Description: TP sdk harness app [DumpListingToDebugger] : IsUAP: TRUE, Market: US, Locale: en-US, Age Rating: 0 [DumpListingToDebugger] : Price: 0, Base Price: 0, Currency Symbol: , Currenty Code: USD [DumpListingToDebugger] : IsOnSale: TRUE, Sale End Date: 9998/12/30 00:00:00 [DumpListingToDebugger] : InAppOfferArray: VALID [DumpListingToDebugger] : 00 offerToken = apples_20, productId = 9NHX1PBCHKC8, name = apples 20, price = 0 (0), type = 2, isOnSale = false, tag = [DumpListingToDebugger] : 00 skuType = full, productId = 9NHX1PBCHKC8, title = apples 20, customDeveloperData = , price = 0 (0), extendedData = , description = [DumpListingToDebugger] : 01 offerToken = apples_10, productId = 9P6R2C2WL6G9, name = apples 10, price = 0 (0), type = 2, isOnSale = false, tag = [DumpListingToDebugger] : 00 skuType = full, productId = 9P6R2C2WL6G9, title = apples 10, customDeveloperData = , price = 0 (0), extendedData = , description = [DumpListingToDebugger] : 02 offerToken = apples_30, productId = 9PMJ3LB3HR6X, name = apples 30, price = 0 (0), type = 2, isOnSale = false, tag = [DumpListingToDebugger] : 00 skuType = full, productId = 9PMJ3LB3HR6X, title = apples 30, customDeveloperData = , price = 0 (0), extendedData = , description = [DumpListingToDebugger] info:GetUnfulfilledConsumablesAsync() invoked. [Windows::ApplicationModel::Store::CurrentAppFactory::GetUnfulfilledConsumablesAsync] info: (0x80070002) [WinStoreAuth::AuthenticationInternal::FindCachedStorePrimaryAccount] \winstoreauth.cpp(2128)\Windows.ApplicationModel.Store.dll!00007FFA69732208: (caller: 00007FFA6972B7C9) ReturnHr(25) tid(69e8) 80070002 The system cannot find the file specified. [WinStoreAuth::AuthenticationInternal::FindCachedStorePrimaryAccount] onecore\ds\security\tokenbroker\pluginmgr\lib\plugreg.cpp(223)\Windows.Security.Authentication.Web.Core.dll!00007FFA73EB4A99: (caller: 00007FFA73EB3CCA) ReturnHr(7) tid(61cc) 80090013 Invalid provider specified. Exception thrown at 0x00007FFA9CD7A388 (KernelBase.dll) in RuntimeBroker.exe: 0x40080201: WinRT originate error (parameters: 0x0000000080070057, 0x000000000000002C, 0x0000004DFA2FED80). info: (0x80070525) [WinStoreAuth::AuthenticationInternal::CreateGoldenAccountTokenRequest] \winstoreauth.cpp(1588)\Windows.ApplicationModel.Store.dll!00007FFA69732122: (caller: 00007FFA6972B876) ReturnHr(26) tid(69e8) 80070525 The specified account does not exist. [WinStoreAuth::AuthenticationInternal::CreateGoldenAccountTokenRequest] info: (0x80070525) [WinStoreAuth::AuthenticationInternal::CaptureGoldenAccountTicket] \winstoreauth.cpp(2090)\Windows.ApplicationModel.Store.dll!00007FFA69732142: (caller: 00007FFA6972B876) ReturnHr(27) tid(69e8) 80070525 The specified account does not exist. [WinStoreAuth::AuthenticationInternal::CaptureGoldenAccountTicket] info: (0x80070525) [WinStoreAuth::AuthenticationInternal::GetStorePrimaryAccountTicketForUri] \winstoreauth.cpp(305)\Windows.ApplicationModel.Store.dll!00007FFA6972B8B7: (caller: 00007FFA6972B569) ReturnHr(28) tid(69e8) 80070525 The specified account does not exist. [WinStoreAuth::AuthenticationInternal::GetStorePrimaryAccountTicketForUri] ERROR:ChkHr(AuthenticationInternal::GetStorePrimaryAccountTicket( 0, AuthenticationEndpoint::OneStore, PromptType::Silent, false, nullptr, authTicket.GetAddressOf(), providerType, spWebTokenRequestResult.GetAddressOf())) (0x80070525) [CollectionsServiceProxyV6::GetUnfulfilledConsumables] ERROR:ChkHr(CollectionsServiceProxyV6::GetUnfulfilledConsumables(bigCatId, pCV, items)) (0x80070525) [Windows::ApplicationModel::Store::GetUnfulfilledConsumablesOperationServer::GetUnfulfilledConsumablesSync] ERROR:ChkHr(GetUnfulfilledConsumablesSync( _spStoreCommerceServer->GetAppCatalogId(cv.Get()), cv.Get(), _spStoreCommerceServer->GetProductIdCache(), spUnfulfilledList.Get())) (0x80070525) [Windows::ApplicationModel::Store::GetUnfulfilledConsumablesOperationServer::DoWork] Exception thrown at 0x73B5DB52 in TP Base SDK.exe: Microsoft C++ exception: Il2CppExceptionWrapper at memory location 0x2067E4E4. Exception thrown at 0x73B5DB52 in TP Base SDK.exe: Microsoft C++ exception: Il2CppExceptionWrapper at memory location 0x2067D89C. UnityIAPWin8:Building full product list with existing purchases UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object) UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[]) UnityEngine.Logger:Log(Object) UnityEngine.Purchasing.<>cDisplayClass16_0:b_0() System.Action:Invoke() UnityEngine.Purchasing.Extension.UnityUtil:Update()
Is there anyone has the same issues, Any helps will be appreciated.