/// <summary> /// Specifies the mode of proration during subscription upgrade/downgrade. /// This value will only be effective if oldSkus is set. /// /// If you set this to NO_PRORATION, /// the user does not receive credit or charge, and the recurrence date does not change. /// /// If you set this to PRORATE_BY_TIME, /// Google Play swaps out the old SKUs and credits the user with the unused value of their subscription time /// on a pro-rated basis. Google Play applies this credit to the new subscription, /// and does not begin billing the user for the new subscription until after the credit is used up. /// /// If you set this to PRORATE_BY_PRICE, Google Play swaps out the old SKUs and keeps the recurrence date not changed. /// User will be charged for the price differences to cover the time till next recurrence date. /// /// Optional: /// * To buy in-app item /// * To create a new subscription /// * To replace an old subscription /// </summary> /// <param name="replaceSkusProrationMode">Proration Mode.</param> public void SetReplaceSkusProrationMode(ProrationMode replaceSkusProrationMode) { m_ReplaceSkusProrationMode = (int)replaceSkusProrationMode; }
public void PurchasePackage(Package package, MakePurchaseFunc callback, string oldSku = null, ProrationMode prorationMode = ProrationMode.UnknownSubscriptionUpgradeDowngradePolicy) { MakePurchaseCallback = callback; _wrapper.PurchasePackage(package, oldSku, prorationMode); }
public void PurchasePackage(Package packageToPurchase, string oldSku = null, ProrationMode prorationMode = ProrationMode.UnknownSubscriptionUpgradeDowngradePolicy) { }
public void PurchaseProduct(string productIdentifier, MakePurchaseFunc callback, string type = "subs", string oldSku = null, ProrationMode prorationMode = ProrationMode.UnknownSubscriptionUpgradeDowngradePolicy) { MakePurchaseCallback = callback; _wrapper.PurchaseProduct(productIdentifier, type, oldSku, prorationMode); }
public void PurchaseProduct(string productIdentifier, string type = "subs", string oldSku = null, ProrationMode prorationMode = ProrationMode.UnknownSubscriptionUpgradeDowngradePolicy) { }