Search Unity

[Solved] Promo Codes for in-App

Discussion in 'Unity IAP' started by IndieFist, Aug 13, 2016.

Thread Status:
Not open for further replies.
  1. IndieFist

    IndieFist

    Joined:
    Jul 18, 2013
    Posts:
    307
  2. IndieFist

    IndieFist

    Joined:
    Jul 18, 2013
    Posts:
    307
    Well, nothing? No one are using promo-code?
    We have tested on google and is not working.
    Is there any tutorial or steps from Unity team to get Promo-code working?
    Kind regards.

    ---
    Apologize about that.
    I have to test it with a different account of developer.
    Now promo code on google are working, testing on apple store right now.
    ---
    No promocode for inapp on apple store.
    =/
     
    Last edited: Aug 16, 2016
  3. erika_d

    erika_d

    Unity Technologies

    Joined:
    Jan 20, 2016
    Posts:
    311
    Hi @MrPacoGP,

    You should not need to do anything special to redeem promo codes with Unity IAP. You'll need to get set up with the codes in the Google Developer Console, but after that it should work the same as a regular purchase. Are you not seeing this behavior?
     
    IndieFist likes this.
  4. erika_d

    erika_d

    Unity Technologies

    Joined:
    Jan 20, 2016
    Posts:
    311
    IndieFist likes this.
  5. IndieFist

    IndieFist

    Joined:
    Jul 18, 2013
    Posts:
    307
    Hi @erika_d for support.
    Yes, just found the documentation, well, its ok.
    I have working at leats promo code for inapp on google with unity inapp.
    Awesome.
    Kind Regards.
     
    erika_d likes this.
  6. mrm83

    mrm83

    Joined:
    Nov 29, 2014
    Posts:
    220
    I have promo codes working like this..
    user redeems code in googleplay
    user clicks on the iap button that buys what the redeem code redeems in the game
    user cancels the purchase on payment request
    item is granted free (from code)

    Is there a way to remove the buying/cancelling part so that the user redeems code, launches game and then item is granted?
     
  7. erika_d

    erika_d

    Unity Technologies

    Joined:
    Jan 20, 2016
    Posts:
    311
    Hi @mrm83,

    It sounds like the user is redeeming from the Google play app store (like the second option described under Creating and Redeeming Promo Codes here: https://developer.android.com/google/play/billing/billing_promotions.html)?

    Which version of IAP are you on? As of IAP 1.6.0, the user shouldn't need to click on the iap button to redeem the purchase. There was a bug with promo codes not being recognized if the app is open, until it's restarted, this was fixed in 1.8.0. Try updating to the latest version of IAP if you're not already on it and let us know how it works after!

    (You can see more info about the promo code changes by version in the changelog: http://forum.unity3d.com/threads/unity-iap-store-package-1-8-1-is-now-available.415517/)
     
  8. mrm83

    mrm83

    Joined:
    Nov 29, 2014
    Posts:
    220
    Yup thats it.
    "There was a bug with promo codes not being recognized if the app is open, until it's restarted, this was fixed in 1.8.0."

    I was on 1.6.1
     
    erika_d likes this.
  9. AdnanMauGames

    AdnanMauGames

    Joined:
    Jan 31, 2017
    Posts:
    3
    Guys,
    I can not use redeem codes in iphone.
    Game can not be notified once promo code entered and nothing increased inside the game.
    How can i solve it please.
     
  10. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,197
Thread Status:
Not open for further replies.