Search Unity

item group id not found (Unity IAP for tizen)

Discussion in 'Tizen' started by kartik1901, Aug 31, 2017.

  1. kartik1901

    kartik1901

    Joined:
    Aug 28, 2017
    Posts:
    3
    I am getting item group id not found error when I click on Buy button after Sign In.

    I am using Unity IAP .

    I have written these lines in purchase code.

    >>>>
    builder.AddProduct(kProductIDConsumable, ProductType.Consumable, new IDs
    {
    {"000000608071", TizenStore.Name},
    });

    builder.Configure<ITizenStoreConfiguration>().SetGroupId("100000098605");

    UnityPurchasing.Initialize(this, builder);
    >>>>>

    I am a beta tester.


    I have registered items with item group id on Tizen Store. I am able to get Items List, but when i purchase an item the login pop comes and after login on click on Buy button this error comes.....

    Please Help.

    LOGS :

    I/Unity (16305): get_extra_data:: _method = OnPurchaseItemReceived

    I/Unity (16305): get_extra_data:: _result = 9201

    I/Unity (16305): get_extra_data:: _resultDescription = 6107|9201|Item group id not found

    I/Unity (16305): get_extra_data:: _itemId =

    I/Unity (16305): get_extra_data:: _itemGroupId =

    I/Unity (16305): get_extra_data:: _itemName =

    I/Unity (16305): get_extra_data:: _currencyUnit =

    I/Unity (16305): get_extra_data:: _unitPrecedes =

    I/Unity (16305): get_extra_data:: _hasPenny =

    I/Unity (16305): get_extra_data:: _itemPrice =

    I/Unity (16305): get_extra_data:: _itemDownloadUrl =

    I/Unity (16305): get_extra_data:: _itemImageUrl =

    I/Unity (16305): get_extra_data:: _itemDescription =

    I/Unity (16305): get_extra_data:: _reserved1 =

    I/Unity (16305): get_extra_data:: _reserved2 =

    I/Unity (16305): get_extra_data:: _paymentId =

    I/Unity (16305): get_extra_data:: _ticketVerifyUrl =

    I/Unity (16305): get_extra_data:: _ticketPurchaseId =

    I/Unity (16305): get_extra_data:: _ticketParam1 =

    I/Unity (16305): get_extra_data:: _ticketParam2 =

    I/Unity (16305): get_extra_data:: _ticketParam3 =

    I/Unity (16305): get_extra_data:: _ticketParam4 =

    I/Unity (16305): get_extra_data:: _ticketParam5 =

    I/Unity (16305): get_extra_data:: _purchaseDate =

    I/Unity (16305): get_extra_data:: _timeStamp =

    I/Unity (16305): OnPurchaseFailed JSON: {"reason":"2","productId":"000000608071","message":"Item group id not found"}

    I/Unity (16305): [UnityIAP] ProcessMessage subject: OnPurchaseFailed payload: {"reason":"2","productId":"000000608071","message":"Item group id not found"} receipt: transactionId:

    I/Unity (16305): UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)

    I/Unity (16305): UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])

    I/Unity (16305): UnityEngine.Logger:Log(LogType, Object)

    I/Unity (16305): UnityEngine.Debug:Log(Object)

    I/Unity (16305): UnityEngine.Purchasing.TizenStoreImpl:processMessage(String, String, String, String)

    I/Unity (16305): UnityEngine.Purchasing.TizenStoreImpl:MessageCallback(String, String, String, String)

    I/Unity (16305):

    I/Unity (16305): (Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

    I/Unity (16305):

    I/Unity (16305): onPurchaseFailedEvent({0}): 000000608071

    I/Unity (16305): UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)

    I/Unity (16305): UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])

    I/Unity (16305): UnityEngine.Logger:Log(String, Object)

    I/Unity (16305): UnityEngine.Purchasing.PurchasingManager:OnPurchaseFailed(PurchaseFailureDescription) (at /Users/builduser/buildslave/unity/build/Extensions/UnityPurchasing/Runtime/Purchasing/PurchasingManager.cs:137)

    I/Unity (16305): UnityEngine.Purchasing.JSONStore:OnPurchaseFailed(String)

    I/Unity (16305): UnityEngine.Purchasing.TizenStoreImpl:processMessage(String, String, String, String)

    I/Unity (16305): UnityEngine.Purchasing.TizenStoreImpl:MessageCallback(String, String, String, String)

    I/Unity (16305):

    I/Unity (16305): (Filename: /Users/builduser/buildslave/unity/build/Extensions/UnityPurchasing/Runtime/Purchasing/PurchasingManager.cs Line: 137)

    I/Unity (16305):

    I/Unity (16305): OnPurchaseFailed: FAIL. Product: '000000608071', PurchaseFailureReason: Unknown

    I/Unity (16305): UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)

    I/Unity (16305): UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])

    I/Unity (16305): UnityEngine.Logger:Log(LogType, Object)

    I/Unity (16305): UnityEngine.Debug:LogError(Object)

    I/Unity (16305): InApp:OnPurchaseFailed(Product, PurchaseFailureReason) (at /Users/pblocal/Desktop/VIJAY/PROJECTS/TizenInAppTest/Assets/InApp.cs:285)

    I/Unity (16305): UnityEngine.Purchasing.StoreListenerProxy:OnPurchaseFailed(Product, PurchaseFailureReason) (at /Users/builduser/buildslave/unity/build/Extensions/UnityPurchasing/Runtime/Purchasing/StoreListenerProxy.cs:40)

    I/Unity (16305): UnityEngine.Purchasing.PurchasingManager:OnPurchaseFailed(PurchaseFailureDescription) (at /Users/builduser/buildslave/unity/build/Extensions/UnityPurchasing/Runtime/Purchasing/PurchasingManager.cs:138)

    I/Unity (16305): UnityEngine.Purchasing.JSONStore:OnPurchaseFailed(String)

    I/Unity (16305): UnityEngine.Purchasing.TizenStoreImpl:processMessage(String, String, String, String)

    I/Unity (16305): UnityEngine.Purchasing.TizenStoreImpl:MessageCallback(String, String, String, String)
     
  2. Jaehyun

    Jaehyun

    Unity Technologies

    Joined:
    Feb 4, 2014
    Posts:
    55
    Which version of IAP do you use?
    Unity IAP(1.11.1 ~ 1.11.4) had a problem to purchase an item in Tizen.
    Please update your IAP over 1.12.0 at least.

    Thanks
     
  3. kartik1901

    kartik1901

    Joined:
    Aug 28, 2017
    Posts:
    3
    @Jaehyun

    I have imported the Unity IAP plugin from Unity Services window.
    I can't see IAP version anywhere.
    I am using Unity 5.6.2f1 Personal.

    You can see in below screen shot.

    For getting Updated IAP, should I update Unity?

    Thanks
     

    Attached Files:

  4. kartik1901

    kartik1901

    Joined:
    Aug 28, 2017
    Posts:
    3
    Also updated to Unity 2017.1 and imported IAP plugin , but same error....
     
  5. Jaehyun

    Jaehyun

    Unity Technologies

    Joined:
    Feb 4, 2014
    Posts:
    55
    (You can find the version information of IAP at Assets/Plugins/UnityPurchasing/Changelog.)
    I guess you might have a latest version of IAP.
    Could you confirm below things on your Tizen Seller Office?
    - You have to set below items correctly on Applications/Item tap.
    1. Select 'Tizen/Unity in App Purchase' in In App Purchase Type menu.
    2. Click 'Search Item Group ID' and then select correct Item group.

    If you set everything correctly, Please re-try to 'Start Beta test' again.
     
  6. vijay-goswami

    vijay-goswami

    Joined:
    May 17, 2017
    Posts:
    7
    Yes ,IAP version is latest. 1.13.1

    Also checked items and Applications/item settings on Tizen Seller Office. All is correct.
    I am able to fetch item list and item details. I have registered 2 items under an item group id.

    but same error on Buy.

    I call this method for purchase.

    if(m_Controller!=null)
    {
    m_Controller.InitiatePurchase("000000608071");
    }

    after this login pop up comes ,SignIn > Item Title and Price shows > credit card selected > On press Buy

    this event called ..

    public void OnPurchaseFailed(Product item, PurchaseFailureReason r)
    {
    Debug.Log("Purchase failed: " + item.definition.id + " reason :" +r);
    }
     
  7. omechano

    omechano

    Joined:
    Sep 12, 2014
    Posts:
    24
    I am having similar errors. In my case how ever I just see the error 9201. No sign in screen , nothing. I am fed up. Why is it so complex ?!?!
     
  8. omechano

    omechano

    Joined:
    Sep 12, 2014
    Posts:
    24
    @Jaehyun

    There is no call back in unity of getting the products. Even the map demo by you guys is not working.

    09-08 01:11:14.368 : INFO / Unity ( 10567 : 10567 ) : UnityIAP StandardPurchasingModule Version: 1.13.1
    09-08 01:11:14.368 : INFO / Unity ( 10567 : 10567 ) :
    09-08 01:11:14.368 : INFO / Unity ( 10567 : 10567 ) : (Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
    09-08 01:11:14.529 : INFO / UnityIAP ( 10567 : 10567 ) : Setting Group ID to: 100000097601
    09-08 01:11:14.619 : INFO / UnityIAP ( 10567 : 10567 ) : IN: unityPurchasingRetrieveProducts([{"id":"100.gold.coins","storeSpecificId":"000000607523","type":"Consumable","enabled":true,"payouts":[]}])
    09-08 01:11:14.619 : INFO / UnityIAP ( 10567 : 10567 ) : IN: create_search_parameter(0xBAC74C58)
    09-08 01:11:14.619 : INFO / Unity ( 10567 : 10567 ) : create_search_parameter:sItemGroupId: 100000097601
    09-08 01:11:14.619 : INFO / UnityIAP ( 10567 : 10567 ) : IN: get_item_list_operation_call()
    09-08 01:11:14.619 : INFO / Unity ( 10567 : 10567 ) : >>>>>>> IAP_SERVICE_APP_ID : org.tizen.inapppurchase.iapservice
    09-08 01:11:14.619 : INFO / Unity ( 10567 : 10567 ) : >>>>>>> GROUP ID : 100000097601
    09-08 01:11:14.619 : INFO / Unity ( 10567 : 10567 ) : >>>>>>> MODE : 0
    09-08 01:11:14.619 : INFO / Unity ( 10567 : 10567 ) : >>>>>>> TRANSACTION ID : 197853
    09-08 01:11:14.619 : INFO / Unity ( 10567 : 10567 ) : >>>>>>> START # : 1
    09-08 01:11:14.619 : INFO / Unity ( 10567 : 10567 ) : >>>>>>> END # : 1000
    09-08 01:11:14.789 : INFO / UnityIAP ( 10567 : 10567 ) : IN: free_search_parameter(0xBAC74C58)
    09-08 01:11:17.602 : INFO / UnityIAP ( 10567 : 10567 ) : IN: get_item_list_cb()
    09-08 01:11:17.602 : INFO / Unity ( 10567 : 10567 ) : get_item_list_cb itemId: 000000607523 itemGroupId: (null) itemName: 10000 Coins currencyUnit:$ itemPrice: 0.99
    09-08 01:11:17.612 : INFO / Unity ( 10567 : 10567 ) : get_item_list_cb itemId: 000000607524 itemGroupId: (null) itemName: 20000 Coins currencyUnit:$ itemPrice: 1.49
    09-08 01:11:17.612 : INFO / UnityIAP ( 10567 : 10567 ) : IN: unityPurchasingRetrievePurchases()
    09-08 01:11:17.612 : INFO / UnityIAP ( 10567 : 10567 ) : IN: create_search_parameter(0xBACD5FE8)
    09-08 01:11:17.612 : INFO / Unity ( 10567 : 10567 ) : create_search_parameter:sItemGroupId: 100000097601
    09-08 01:11:17.612 : INFO / UnityIAP ( 10567 : 10567 ) : IN: get_purchased_item_list_operation_call()
    09-08 01:11:17.802 : INFO / Unity ( 10567 : 10567 ) : Purchase list result: APP_CONTROL - No error
    09-08 01:11:17.802 : INFO / UnityIAP ( 10567 : 10567 ) : IN: free_search_parameter(0xBACD5FE8)
     
  9. Jaehyun

    Jaehyun

    Unity Technologies

    Joined:
    Feb 4, 2014
    Posts:
    55
    The productID is differ from the store-specific product ID.
    Could you use productID of Unity IAP system instead of "product id" in Tizen sotre?

    You can get the ID like below.
    m_Controller.products.all[your-item-index].definition.id
     
    Last edited: Sep 8, 2017
  10. Jaehyun

    Jaehyun

    Unity Technologies

    Joined:
    Feb 4, 2014
    Posts:
    55
    Are you testing your application in beta-test mode? (I attached the guide of beta test in Tizen.)
    If you are in beta-test mode, I need more information to check the reason of not getting callback.
    Could you share your sample code for IAP?
     

    Attached Files:

  11. omechano

    omechano

    Joined:
    Sep 12, 2014
    Posts:
    24
    @Jaehyun yes it is in beta I can send you my credentials all all my code. Please send me your bitbucket username so I can add you to the repo.

    I have attached my two code files. I know I don't need a separate store listener but I have tried a million things to get this working and this was one of them.

    Send me your email and I can send you my Tizen Store Creds. Is there a Skype or other option on the table ?
     

    Attached Files:

  12. saraswati-patel

    saraswati-patel

    Joined:
    Jun 17, 2013
    Posts:
    2
    @Jaehyun Getting error Purchase fail "group id not found"
    Here is log
    01-04 11:07:10.805 : Info / UnityIAP ( 4719 : 4719 ) : get_purchase_cb(): purchase result callback result:0
    01-04 11:07:10.805 : Info / Unity ( 4719 : 4719 ) : get_extra_data:: _method = OnPurchaseItemReceived
    01-04 11:07:10.805 : Info / Unity ( 4719 : 4719 ) : get_extra_data:: _result = 9201
    01-04 11:07:10.805 : Info / Unity ( 4719 : 4719 ) : get_extra_data:: _resultDescription = 6107|9201|Item group id not found
    01-04 11:07:10.805 : Warning / CAPI_APPFW_APP_CONTROL ( 4719 : 4719 ) : app_control.c: app_control_error(152) > [app_control_get_extra_data] KEY_NOT_FOUND(0xffffff82)
    01-04 11:07:10.805 : Info / Unity ( 4719 : 4719 ) : get_extra_data:: _timeStamp =
    01-04 11:07:10.805 : Info / UnityIAP ( 4719 : 4719 ) : get_purchase_cb(): purchase FAILED result string = 6107|9201|Item group id not found
    01-04 11:07:10.805 : Info / Unity ( 4719 : 4719 ) : OnPurchaseFailed JSON: {"reason":"2","productId":"000000612524","message":"Item group id not found"}
    01-04 11:07:10.805 : Info / UnityIAP ( 4719 : 4719 ) : Tizen sendMessageToUnityUnibillManager(OnPurchaseFailed, ...)
    01-04 11:07:10.805 : Info / Unity ( 4719 : 4719 ) : [UnityIAP] ProcessMessage subject: OnPurchaseFailed payload: {"reason":"2","productId":"000000612524","message":"Item group id not found"} receipt: transactionId: (Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
    01-04 11:07:10.805 : Warning / INDICATOR ( 842 : 842 ) : wifi.c: _wifi_changed_cb(196) > _wifi_changed_cb[196] "wifi state : 1"
    01-04 11:07:10.815 : Info / Unity ( 4719 : 4719 ) : onPurchaseFailedEvent({0}): Merle_Buy (Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
    01-04 11:07:10.825 : Warning / CAPI_APPFW_APPLICATION ( 5020 : 5020 ) : app_main.c: _ui_app_appcore_pause(688) > app_appcore_pause
    01-04 11:07:10.825 : Info / Lavnd ( 5020 : 5020 ) : LavndAppMain.c: __LavndAppTerminate(121) > [Lavnd][LavndAppMain] __LavndAppTerminate
    01-04 11:07:10.825 : Info / Lavnd ( 5020 : 5020 ) : LavndViewManager.c: LavndViewManager_AppTerminate(579) > [Lavnd][LavndViewManager] LavndViewManager_AppTerminate()
    01-04 11:07:10.825 : Info / Lavnd ( 5020 : 5020 ) : LavndAppMain.c: __LavndAppTerminate(125) > [Lavnd][LavndAppMain] ewk_shutdown() -> return count : 0
    01-04 11:07:10.825 : Info / Lavnd ( 5020 : 5020 ) : LavndAppMain.c: __DeRegisterEventHandlers(242) > [Lavnd][LavndAppMain] __DeRegisterEventHandlers()
    01-04 11:07:10.825 : Info / Lavnd ( 5020 : 5020 ) : LavndViewDataHandler.c: LavndViewDataHandler_Terminate(45) > [Lavnd][LavndViewDataHandler] LavndViewDataHandler_Terminate()
    01-04 11:07:10.825 : Info / Lavnd ( 5020 : 5020 ) : LavndAppControlManager.c: LavndAppControlManager_Terminate(79) > [Lavnd][LavndAppControlManager] LavndAppControlManager_Terminate
    01-04 11:07:10.825 : Info / Lavnd ( 5020 : 5020 ) : MintConfiguration.c: __terminateMintConfigCL(843) > [Lavnd][MintConfig]Terminate Configuration
    01-04 11:07:10.825 : Info / Lavnd ( 5020 : 5020 ) : MintEventHandler.c: MintEventHandler_Terminate(107) > [Lavnd][MintEventHandler] Terminate
    01-04 11:07:10.825 : Info / Lavnd ( 5020 : 5020 ) : MintNetTransactionHandler.c: MintNetTransaction_Terminate(218) > [Lavnd][MintNetTransaction] Terminate Net transaction handler
    01-04 11:07:10.825 : Info / CAPI_NETWORK_CONNECTION ( 5020 : 5020 ) : connection.c: __connection_set_proxy_changed_callback(398) > Successfully de-registered(0)
    01-04 11:07:10.825 : Error / EFL ( 534 : 534 ) : eo<534> lib/eo/eo.c:675 _eo_call_resolve() in lib/edje/edje_object.eo.c:320: func 'edje_obj_signal_emit' (435) could not be resolved for class 'Evas_Object_Smart'.
    01-04 11:07:10.835 : Info / Unity ( 4719 : 4719 ) : OnPurchaseFailed: FAIL. Product: '000000612524', PurchaseFailureReason: Unknown (Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)


    Using unity version 5.6.3f1 and IAP version 1.15.0
    Please check full error log
     

    Attached Files:

    Last edited: Jan 4, 2018