Search Unity

Amazon: Unavailable product

Discussion in 'Unity IAP' started by Lesha-VH, Jul 9, 2019.

  1. Lesha-VH

    Lesha-VH

    Joined:
    Jul 3, 2012
    Posts:
    76
    UnityIAP version 1.22.0, Unity 2017.4.29f1

    Create empty project with ony one plug-in: UnityIAP
    Google Play store test application works fine.

    Amazon Store.
    Unity console shows: "Unavailable product" for each product.

    Logcat shows nothing interesting (Unity tag):
    "onGetUserIdResponse..."
    "Requesting 1 groups of skus"
    "onItemDataResponse..."
    "onPurchaseUpdatesRespose..."
    "Unavailable product..."

    Anyone manage to work Amazon with UnityIAP?
    I check and re-check everything 5 times or more... No ideas and nothing helps.
    Almost no information at amazon or Unity forum about bags - everything working (except for me))))
     
  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    4,915
  3. Lesha-VH

    Lesha-VH

    Joined:
    Jul 3, 2012
    Posts:
    76
    Jeff, integration is very simple...

    I have in logcat:

    Unity Purchasing Amazon
    onPurchaseUpdatesRespose


    (it comes from Unity activity, but only seen in native device log, not in Unity log)

    Could you tell me please, does this line in log means that plug-in correctly initialized and get response from Amazon store correctly?
     
    Last edited: Jul 10, 2019
  4. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    4,915
    Please put debug code in your OnInitialized callbacks to confirm. Debug.Log statements will show in logcat
     
  5. Lesha-VH

    Lesha-VH

    Joined:
    Jul 3, 2012
    Posts:
    76
    Jeff, I am using IAP Demo scene from plug-in

    In unity OnInitializeFailed() called. In console:
    "Billing failed to initialize!";
    "No products available for purchase!";


    But the question asked was DIFFERENT that you answered.

    When these lines printed to devices log by Unity IAP?

    Unity Purchasing Amazon
    onPurchaseUpdatesRespose
     
  6. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    4,915
    I was encouraging you to review the documentation and debug. We haven't tested on Amazon for some time. You can't initialize IAP in the Editor, you can only use the fake store. You need to install on a device.
     
  7. Lesha-VH

    Lesha-VH

    Joined:
    Jul 3, 2012
    Posts:
    76
    the problem is in Amazon...

    In app purchases do not work in live testing and sandbox.
    In app purchases work in approved build that goes live.
     
    JeffDUnity3D likes this.