Search Unity

IAP Payouts not support for Non-Consumable product

Discussion in 'Game Foundation' started by binhnguyen991, Sep 22, 2021.

  1. binhnguyen991

    binhnguyen991

    Joined:
    Feb 14, 2014
    Posts:
    5
    Sample, I have an IAP non-consumable product to buy a special item in Inventory Catalog. How can I achieve this situation, if IAP Transaction payouts only support for consumable iap product.
     

    Attached Files:

  2. richj_unity

    richj_unity

    Unity Technologies

    Joined:
    Sep 23, 2019
    Posts:
    40
    You can honor non-consumable purchases by checking
    GameFoundationSdk.transactions.IsIapProductOwned("my.product.id") and then deciding what logic you want to execute based on that ownership. It's common for non-consumable purchases to do something other than grant items or currency, so this gives the freedom to add more custom logic, while also preventing unwanted effects such as the player getting the same items granted again every time non-consumable purchases are restored.
     
    erika_d likes this.