Search Unity

IAP Fails To Redeem Codes on iOS

Discussion in 'Unity IAP' started by adhdchris, May 23, 2019.

  1. adhdchris

    adhdchris

    Joined:
    Nov 13, 2013
    Posts:
    45
    So I've been having issues getting Redeemed codes for consumable in-app purchases registered by the IAP listener. The users, successfully redeem the code via the AppStore, but no purchase is being registered once they launch the app and restoring purchases seems to only work for non-consumables.

    What's the correct workflow for getting a callback from the AppStore regarding a redeemed code for a consumable item?

    Could it be that a purchaseComplete callback gets called as soon as the Codless IAP gets initialized, while my app is still loading a scene/data and therefore no currency gets added to the database? Or is there a certain method I need to call after initializing IAP to trigger the pending purchases check?
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    I don't believe there is a redeem callback. The user needs to actually attempt the purchase, and then should not be charged. Please test.
     
  3. Looping_co

    Looping_co

    Joined:
    Dec 10, 2016
    Posts:
    20
    Hi, Same problem. I try your solution but it don't work.
     
  4. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Please define didn't work. Was the user still charged? How are you generating the codes?