Search Unity

  1. Going to #UniteBerlin? Bring a buddy & get 25% off the 2nd ticket! More info here.
    Dismiss Notice
  2. Famed game designer and creator of The Sims, SimCIty, and Spore is looking for a 3D artist to join their team. Join the challenge.
    Dismiss Notice
  3. Unity 2017.4 has arrived! Read about it here.
    Dismiss Notice
  4. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  5. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  6. We've opened a new World Building sub-forum to faciltate all your world building discussions! Drop in and ask any ProBuilder, ProGrids, or PolyBrush questions.
    Dismiss Notice
  7. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Android Subscriptions - Introductory pricing support

Discussion in 'Unity IAP' started by gianfanatee, Apr 10, 2018.

  1. gianfanatee

    gianfanatee

    Joined:
    Jun 14, 2016
    Posts:
    9
    Hi there, Unity Team,

    I have subscriptions in my game already working, but would like to add a new subscription with an introductory pricing. Basically, Google Play allows subscriptions to be created which have a cheaper price during the initial N days/weeks/months/etc.
    Ex: Pay $1.99 for the first three months, and then $3.99 the following months.
    (More info at https://developer.android.com/google/play/billing/billing_subscriptions.html#intro and https://support.google.com/googleplay/android-developer/answer/140504?hl=en#intro)

    When retrieving the SKUs from Google, there are several sku details provided by Google, but which Unity does not expose. A few examples are: introductoryPrice, introductoryPricePeriod, introductoryPriceCycles, ...
    (For all skuDetails, check https://developer.android.com/google/play/billing/billing_reference.html#getSkuDetails)

    Digging a bit deeper, I'm under the impression that Unity, when retrieving the products, does not save those values. The json with the values is saved in the android-specific code, but when sending them to Unity, the data is parsed to only send the default cross-platform Product object.

    I have not been able to find any way to access the needed information. Even access to the raw json would be enough. Seeing as Android has this since 2006, I'd expect it to be implemented. Hopefully, now that Apple has added introductory pricing to the App Store, this might get put on fast track.

    Anywho, is there any solution or workaround for my problem? I need to access the raw skuDetails for subscriptions. Would implementing a IStoreExtension help? The only workaround I can think about is monkey patching the Unity IAP, which sounds like a horrible idea.

    Thanks,
     
    MorenoBralts likes this.
  2. gianfanatee

    gianfanatee

    Joined:
    Jun 14, 2016
    Posts:
    9
    Is there any way to read the raw JSON response from google?
     
  3. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    1,259
    This is a feature we are looking to add in a future release, hopefully soon.