Search Unity

[Solved] Latest subscription receipts are missing on Android

Discussion in 'Unity IAP' started by benblowfish, Apr 24, 2017.

Thread Status:
Not open for further replies.
  1. benblowfish

    benblowfish

    Joined:
    Feb 25, 2017
    Posts:
    2
    Hi,

    I have a subscription based app (Unity 5.4 and UIAP 1.10.1) on the stores and they work with custom server validation. iOS is working fine when a subscription auto-renews, but with Android I don't seem to be getting the latest transaction at initialisation.

    When I look at the purchased product details I can see the purchase date was the first subscription date, but since then there has been one auto-renew. My server validation is failing with the provided receipt because it is expired. I've tried checking both the products.all array and the processPurchase callback at start up and both show the old receipt.

    Is there something I'm missing or getting wrong?

    Cheers,
    Ben.
     
  2. benblowfish

    benblowfish

    Joined:
    Feb 25, 2017
    Posts:
    2
    So I'm now in Unity 5.6.1 and still Unity only returns the very original subscription transaction details. Because there is no option to call the getPurchaseHistory for Android it seems like there is no mechanism/method to find out the receipt for the latest auto-renewed transaction.

    Is there anyone else using auto-renewable subscriptions and if so do you have this problem?

    Can someone from Unity perhaps reply to let me know if this is expected behaviour?
     
  3. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,519
Thread Status:
Not open for further replies.