• What’s new in Play Billing Library • ࠓ͞ͳ͍͜ͱ • What’s new in Play Console • What’s new in Play Billing API • What’s new in Play Billing Test • Getting started with Play Billing Library 2
proration during subscription upgrade/downgrade. This value will only * be effective if oldSkus is set. * * <p> If you set this to NO_PRORATION, the user does not receive credit or charge, and the * recurrence date does not change. * * <p>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. * * <p>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. * * <p>Optional: * * <ul> * <li>To buy in-app item * <li>To create a new subscription * <li>To replace an old subscription * </ul> */ public Builder setReplaceSkusProrationMode(@ProrationMode int replaceSkusProrationMode) { this.mReplaceSkusProrationMode = replaceSkusProrationMode; return this; }
indicating whether the user should be credited for any unused * subscription time on the SKUs they are upgrading or downgrading. * * <p>If you set this field to false, the user does not receive credit for any unused * subscription time and the recurrence date does not change. Otherwise, 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. * * <p>Optional: * * <ul> * <li>To buy in-app item * <li>To create a new subscription * <li>To replace an old subscription * </ul> */ public Builder setReplaceSkusProration(boolean bReplaceSkusProration) { mParams.mNotReplaceSkusProration = !bReplaceSkusProration; return this; }
Play features • https://youtu.be/x1AYelepG6o • Code samples: library is v1.0 • https://github.com/googlesamples/android-play- billing/tree/master/ClassyTaxi/android/ClassyTaxi 25