Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How to download Unity IAP 1.23.1 version ?

Discussion in 'Unity IAP' started by lowLevell, Jun 26, 2020.

  1. lowLevell

    lowLevell

    Joined:
    Nov 22, 2013
    Posts:
    27
    I updated Unity IAP to version 1.23.2. But I'm having problems. But when I stop buying products show "PurchaseFailureReason.UserCanceled" log, but also completes the purchase and displays the "ProcessPurchase: PASS. Product:" log.

    I wasn't having this problem in version 1.23.1. How can I revert to version 1.23.1? I couldn't find the unitypackage file anywhere.
     
    nicholasr likes this.
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Can you share the logs from such a test? Text not image
     
  3. lowLevell

    lowLevell

    Joined:
    Nov 22, 2013
    Posts:
    27
    Starting Game


    06-26 18:32:28.792 27430 27515 I Unity : UnityIAP Version: 1.23.2
    06-26 18:32:30.300 27430 27515 I Unity : Using configuration builder objects
    06-26 18:32:30.916 27430 27515 I Unity : OnInitialized: PASS
    06-26 18:32:30.917 27430 27515 I Unity : UnityIAP: Promo interface is available for 1 items
    06-26 18:32:35.583 27430 27515 I Unity : Purchasing product asychronously: 'product.bundle'
    06-26 18:32:35.603 27430 27515 I Unity : purchase({0}): product.bundle


    I click the Purchase button in the game and the Google purchase window appears and immediately press the phone's back button


    06-26 18:32:37.045 27430 27515 I Unity : onPurchaseFailedEvent({0}): product.bundle
    06-26 18:32:37.045 27430 27515 I Unity : OnPurchaseFailed: FAIL. Product: 'product.bundle', PurchaseFailureReason: UserCancelled

    06-26 18:32:37.978 27430 27515 I Unity : ProcessPurchase: PASS. Product: 'product.bundle'
    06-26 18:32:37.980 27430 27515 I Unity : UnityIAP Promo: Clearing promo product metadata
     
    Last edited: Jun 26, 2020
    nicholasr likes this.
  4. lowLevell

    lowLevell

    Joined:
    Nov 22, 2013
    Posts:
    27
    The IAP version that is live on the Google Play Store is 1.23.1. I download it from the Google Play Store and try same.

    Starting Game


    06-26 18:41:48.143 29358 29426 I Unity : UnityIAP Version: 1.23.1
    06-26 18:41:48.809 29358 29426 I Unity : Using configuration builder objects
    06-26 18:41:49.924 29358 29426 I Unity : OnInitialized: PASS
    06-26 18:41:49.930 29358 29426 I Unity : UnityIAP: Promo interface is available for 1 items
    06-26 18:41:53.888 29358 29426 I Unity : Purchasing product asychronously: 'product.bundle'
    06-26 18:41:53.904 29358 29426 I Unity : purchase({0}): product.bundle


    I click the Purchase button in the game and the Google purchase window appears and immediately press the phone's back button


    06-26 18:41:55.048 29358 29426 I Unity : onPurchaseFailedEvent({0}): product.bundle
    06-26 18:41:55.048 29358 29426 I Unity : OnPurchaseFailed: FAIL. Product: 'product.bundle', PurchaseFailureReason: UserCancelled

     
    nicholasr likes this.
  5. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    @lowLevell Got it, I will follow up and provide the link to 1.23.1
     
  6. lowLevell

    lowLevell

    Joined:
    Nov 22, 2013
    Posts:
    27
    Thanks. I'm waiting
     
  7. ryule_unity

    ryule_unity

    Joined:
    Jun 5, 2018
    Posts:
    1
    How's it going? It's really annoying that IStoreListener.ProcessPurchase() is called right after IStoreListener.OnPurchaseFailed() (by user cancel).

    For me, this situation is always occurred by this way:
    - Make a pending receipt.
    - Restarts the app.
    - Consume the receipt.
    - Try to buy a product, but cancel this time.
    - OnPurchaseFailed() is called with a code: user canceled.
    - Right after that, ProcessPurchase() is called.

    When the situation occurs, the transaction ID value on ProcessPurchase() is actually the purchase token and the product info is same to the previously consumed one. I think it's natural that there's no transaction ID because the transaction was never happen by user cancel.
    This problem lead my logging system to be totally screwed up, so I want to know any workaround or when it will be solved.
     
    Last edited: Jun 28, 2020
    nicholasr likes this.
  8. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    We are working on a solution
     
  9. lowLevell

    lowLevell

    Joined:
    Nov 22, 2013
    Posts:
    27
    @JeffDUnity3D
    When can you upload version 1.23.1? I need to send an update to the google play.
     
  10. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
  11. lowLevell

    lowLevell

    Joined:
    Nov 22, 2013
    Posts:
    27
    Thanks
     
    nicholasr likes this.
  12. nicholasr

    nicholasr

    Joined:
    Aug 15, 2015
    Posts:
    183
    Thank you for the fast and helpful reports of the behavior after reinstallation!

    Unity IAP 1.23.3 is now released and includes the functionality of 1.23.2 with a change to disable by default the problematic behavior @lowLevell (and @ryule_unity) reported, "stop buying products [cancel purchase, then it] completes the purchase".

    Please see the release notes for more detail on how to opt-in to this feature for more immediate recovery and notification of successful purchases which were previously interrupted, which is safe to use if the game supplements the erasable TransactionLog Unity IAP on-device database with a transaction-ID de-duplication server.