Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Actively get updates of receipt data via Unity IAP

Discussion in 'Unity IAP' started by HART_SB, Jun 3, 2022.

  1. HART_SB

    HART_SB

    Joined:
    Nov 27, 2018
    Posts:
    16
    I can't see this documented anywhere so I suspect it's not possible, but just wanted confirmation on a topic:

    In the Unity IAP pacakge, is it possible to actively get updates on previous subscription purchases without receiving the product.receipt data (i.e. in cases where there are no current subscriptions and so, this property is null/blank)?

    In other words, is there a method by which you can (for example) give a token/transactionID as parameters and get updates on that transaction's expiration dates, subscription status etc?
     
  2. Baroni

    Baroni

    Joined:
    Aug 20, 2010
    Posts:
    3,176
    Currently not. This would require Unity IAP doing a HTTPS request to the App Store backend using various configuration keys, which you would have to enter in the editor somewhere. There is no such functionality in Unity IAP at the moment. Hope this answers your question. It might get a little bit better with the StoreKit 2 update Unity is working on for Q3/Q4.

    If you are interested in an asset extensions for this, please check out this one.
     
    JackTruong likes this.
  3. HART_SB

    HART_SB

    Joined:
    Nov 27, 2018
    Posts:
    16
    Thanks for the confirmation