Search Unity

How to detect refund in GP?

Discussion in 'Unity IAP' started by justtime, Apr 21, 2020.

  1. justtime

    justtime

    Joined:
    Oct 6, 2013
    Posts:
    424
    Hi there!
    How can i detect in Unity IAP, that user made a refund?
    User case:
    1)User bought something
    2)IAP unlocks this
    3)User made a refund
    4)Item stays unlocked

    If user close/open app again with network connection, item is blocked.
    But without connection app uses local state without IAP initialization and item is still unlocked.

    Can i somehow validate receipts offline?
    Can i somehow query current item state receipt status when i want, not only at startup?