Search Unity

Issue with purchases

Discussion in 'Xiaomi' started by Deleted User, Oct 4, 2018.

  1. Deleted User

    Deleted User

    Guest

    Hello guys,

    we`ve faced an issue with purchases:
    400 people were started process of purchasing IAP
    275 got some error
    1 finished successfully
    124 were simply disappeared
    How to find all these 113 people?
    Why so many people got error?
    How to get some detail message regarding errors?


    Thank you in advance!
     
  2. unityjingyao

    unityjingyao

    Unity Technologies

    Joined:
    Feb 20, 2017
    Posts:
    220
    Hi,

    Unity IAP’s StandardPurchasingModule relies upon a persistent GameObject named “IAPUtil”. This hidden, “DontDestroyOnLoad”-configured object can be destroyed by a game script which cleans GameObjects from the scene hierarchy (potentially useful for scene transitions). This results in Unity IAP no longer working as expected.
    To fix, please add an exception in the app’s hierarchy cleanup script for the “IAPUtil” GameObject.

    And please make sure that your IStoreListener object isn't destroyed. Otherwise, ProcessPurchase and OnPurchaseFailed will not be fired.

    What errors did you get?
    You can find the failure reason via PurchaseFailureReason in the OnPurchaseFailed callback.
    Store specific error can be found via ITransactionHistoryExtensions.GetLastStoreSpecificPurchaseErrorCode and ITransactionHistoryExtensions.GetLastPurchaseFailureDescription.
    Please find the example code in 'Assets\Plugins\UnityPurchasing\script\IAPDemo.cs'.
     
    Deleted User likes this.
  3. Deleted User

    Deleted User

    Guest

    Thank you for reply! We will introduce all that fixes in the next version.
    By the way, another question:
    How to receive application`s revenue from Xiaomi Store?
    We`ve found in FAQ, that we should make a manual request, but any information about where to do that and how.
     
    Last edited by a moderator: Oct 9, 2018
  4. unityjingyao

    unityjingyao

    Unity Technologies

    Joined:
    Feb 20, 2017
    Posts:
    220
  5. Deleted User

    Deleted User

    Guest

  6. unityjingyao

    unityjingyao

    Unity Technologies

    Joined:
    Feb 20, 2017
    Posts:
    220
    I'm sorry that that email is the only option I have.
    The revenue can be found at 'Projects -> Dashboard' on Xiaomi Dev Portal.
    Could you please send me your email address? I could remind Xiaomi of your email.
    dev portal.png
     
  7. Deleted User

    Deleted User

    Guest

    Thank you!
    They are already replied.
     
  8. Velawoods

    Velawoods

    Joined:
    Apr 30, 2018
    Posts:
    5
    Where can i find this "app’s hierarchy cleanup script"?