Search Unity

  1. Unity 2019.4 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  3. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Unity IAP iOS & Android Promo Codes

Discussion in 'Unity IAP' started by mgyanm, Oct 25, 2018.

  1. mgyanm

    mgyanm

    Joined:
    Jul 6, 2012
    Posts:
    9
    I am trying to create promo code for in-app purchased.

    For android, when i trying to redeem the code via Play Store, it suggest me to open the game and then the item is being received after restarting the app ( if the app is not restarted, the player didnt get the item that redeemed )

    For Apple, i cannot get any receipt, nor the ProcessPurchase was being called after i redeemed the code via AppStore. Yet, if i try to buy ( using money, not redeem ) the in app item, the proccess purchase get the signal and processing the item purchased. I test it with game already running in background, and with game restarted after i redeem the code. So far, the processPurchase isnt being called.

    Can anyone help me with this.
    Is Unity IAP support promo codes for iOS?

    Thank you,
    Gyan
     
  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    7,372
    Can you clarify your statements "the proccess purchase get the signal" followed by "processPurchase isnt being called". If you have received a promo code on the store, when you attempt to purchase the product via the standard credit card process, this promo should be recognized at that time. Is this not the case for you? This is my understanding how it should work, I'll check with the IAP team also.
     
  3. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    7,372
    We are continuing to investigate.
     
    Last edited: Oct 25, 2018
  4. mgyanm

    mgyanm

    Joined:
    Jul 6, 2012
    Posts:
    9
    I mean that, in Android, when i input the redeem code on Google Play, and then after that i open my Game, the ProcessPurchase method in Unity IAP was automatically called, and the Unity IAP System detect that i just redeemed the IAP Item from within Play Store ( but i had to restart the game for this to work ). i know it works because it show debug.log with the redeemed IAP item as a message.

    in iOS, after inputing the redeem code for IAP on App Store and opened the game, the Unity IAP System couldn't detect the redeemed item at all, even when i restarted the game.

    Have you tested this yet?
    Thank you

    Sorry for my bad english.
     
  5. mgyanm

    mgyanm

    Joined:
    Jul 6, 2012
    Posts:
    9
  6. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    7,372
    @mgyanm Can you confirm that the user isn't charged when you initiate the purchase manually? We are checking to see if we should be expecting a callback from Apple at app launch
     
  7. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    7,372
    Which moderators?
     
unityunity