1. Are you ready for the Galaxy S20? Here is everything we know so far!

How to set Proration mode while updating Subscription With Google play console

Discussion in 'Android Lounge' started by Veclar, Aug 30, 2018.

  1. Veclar

    Veclar Newbie
    Thread Starter

    i am using an in app bliling subscription method in my app. i am using getBuyIntentToReplaceSkus to update my subscription.
    buyIntentBundle = mService.getBuyIntentToReplaceSkus(5,
    mContext.getPackageName(),oldSkus, sku, itemType, extraData);

    i want to add proration mode while updating my sku. I have seen a method here on delevoper forum https://developer.android.com/google/play/billing/billing_subscriptions#Allow-upgrade But i don't know how use this with getBuyIntentToReplaceSkus. Here is the code that i have seen on that link.

    BillingFlowParams flowParams = BillingFlowParams.newBuilder()
    .setSku(skuId)
    .setType(billingType)
    .setOldSku(oldSku)
    .setReplaceSkusProrationMode(replaceSkusProrationMode)
    .build()
    int responseCode = mBillingClient.launchBillingFlow(activity, flowParams);
     


  2. Veclar

    Veclar Newbie
    Thread Starter

    I also need to know what happens to the remaining days of previous subscription when you upgrade or downgrade your subscription.
     
Loading...
Similar Threads - set Proration mode
  1. greg8334
    Replies:
    7
    Views:
    115
  2. AndroidGUIIsComplicated
    Replies:
    1
    Views:
    376
  3. MoodyBlues
    Replies:
    17
    Views:
    1,105
  4. Petecc
    Replies:
    0
    Views:
    135
  5. Charles Lee
    Replies:
    5
    Views:
    402
  6. ETtrailrunner
    Replies:
    7
    Views:
    467
  7. dvhttn
    Replies:
    2
    Views:
    290
  8. Steve Erlich
    Replies:
    3
    Views:
    234
  9. UndefinedN00B
    Replies:
    7
    Views:
    533
  10. masplin
    Replies:
    10
    Views:
    457

Share This Page

Loading...