Search Unity

Issue with Amazon IAP

Discussion in 'Android' started by warmanw, Jan 17, 2019.

  1. warmanw

    warmanw

    Joined:
    Feb 2, 2015
    Posts:
    32
    Hi guys we are having IAP issue with our game on Amazon Store after upgrading unity.

    when I test APK in test mode using Amazon App Test and exported IAP Json all works fine.

    but when I try to test the game in live environment it throws this exception


    01-17 14:54:42.806 23515-23547/com.package.game E/Unity: AndroidJavaException: java.lang.IllegalArgumentException: skus must not be null
    java.lang.IllegalArgumentException: skus must not be null
    at com.amazon.device.iap.internal.util.d.a(Validator.java:13)
    at com.amazon.device.iap.internal.d.a(PurchasingManager.java:86)
    at com.amazon.device.iap.PurchasingService.getProductData(PurchasingService.java:107)
    at com.unity.purchasing.amazon.AmazonPurchasingService.getProductData(AmazonPurchasingService.java:33)
    at com.unity.purchasing.amazon.AmazonPurchasing.RefreshProducts(AmazonPurchasing.java:464)
    at com.unity.purchasing.amazon.AmazonPurchasing.RetrieveProducts(AmazonPurchasing.java:301)
    at com.unity.purchasing.common.StoreDeserializer.RetrieveProducts(StoreDeserializer.java:13)
    at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
    at com.unity3d.player.UnityPlayer.c(Unknown Source)
    at com.unity3d.player.UnityPlayer$e$2.queueIdle(Unknown Source)
    at android.os.MessageQueue.next(MessageQueue.java:211)
    at android.os.Looper.loop(Looper.java:122)
    at c



    Please help.

    The game was working fine on 2017.3 version we just upgraded it. we use latest Unity IAP plugin