Stay organized with collections
Save and categorize content based on your preferences.
Google.Play.Billing
Summary
Enumerations
GooglePlayStoreProrationMode
GooglePlayStoreProrationMode
Proration modes during SKU replacement supported by GooglePlay.
Please refer to https://developer.android.com/google/play/billing/subs#change for instructions and examples.
Reserved enum: 4. Note that the Deferred mode is not supported here because it is not compatible with the Unity IAP. More details can be found at: https://issuetracker.google.com/168990998.
Properties |
ImmediateAndChargeProratedPrice
|
Replacement takes effect immediately, and the billing cycle remains the same.
The price for the remaining period will be charged. This option is only available for subscription upgrade.
|
ImmediateWithTimeProration
|
Replacement takes effect immediately, and the remaining time will be prorated and credited to the user.
This is the current default behavior.
|
ImmediateWithoutProration
|
Replacement takes effect immediately, and the new price will be charged on next recurrence time.
The billing cycle stays the same.
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2021-03-18 UTC.
[null,null,["Last updated 2021-03-18 UTC."],[],[],null,["# Google.Play.Billing Namespace\n\nGoogle.Play.Billing\n===================\n\nSummary\n-------\n\n| ### Enumerations ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [GooglePlayStoreProrationMode](#namespaceGoogle_1_1Play_1_1Billing_1af16226882fa9b632b26591c682f3900f)`{` ` `[ImmediateWithTimeProration](#namespaceGoogle_1_1Play_1_1Billing_1af16226882fa9b632b26591c682f3900fa639f68e5a266b0bcd426f0062ec11cee)` = 1,` ` `[ImmediateAndChargeProratedPrice](#namespaceGoogle_1_1Play_1_1Billing_1af16226882fa9b632b26591c682f3900faff0175e4727bd2057a8ddc8b86a78ba1)` = 2,` ` `[ImmediateWithoutProration](#namespaceGoogle_1_1Play_1_1Billing_1af16226882fa9b632b26591c682f3900fa4f03e451c2e6f9cc7f3cd0f352e0d023)` = 3` `}` | enum Proration modes during SKU replacement supported by [Google](/reference/unity/namespace/Google#namespaceGoogle)[Play](/reference/unity/namespace/Google/Play#namespaceGoogle_1_1Play). |\n\n| ### Classes ||\n|-------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Google.Play.Billing.GooglePlayStoreUnsupportedException](/reference/unity/class/Google/Play/Billing/GooglePlayStoreUnsupportedException) | Thrown if the request is not supported by [Google](/reference/unity/namespace/Google#namespaceGoogle)[Play](/reference/unity/namespace/Google/Play#namespaceGoogle_1_1Play)[Billing](/reference/unity/namespace/Google/Play/Billing#namespaceGoogle_1_1Play_1_1Billing) plugin. |\n\n| ### Namespaces ||\n|-------------------------------------------------------------------------------------|---|\n| [Google.Play.Billing.Editor](/reference/unity/namespace/Google/Play/Billing/Editor) | |\n\nEnumerations\n------------\n\n### GooglePlayStoreProrationMode\n\n```c#\n GooglePlayStoreProrationMode\n``` \nProration modes during SKU replacement supported by [Google](/reference/unity/namespace/Google#namespaceGoogle)[Play](/reference/unity/namespace/Google/Play#namespaceGoogle_1_1Play).\n\nPlease refer to \u003chttps://developer.android.com/google/play/billing/subs#change\u003e for instructions and examples.\n\nReserved enum: 4. Note that the Deferred mode is not supported here because it is not compatible with the Unity IAP. More details can be found at: \u003chttps://issuetracker.google.com/168990998\u003e.\n\n| Properties ||\n|-----------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `ImmediateAndChargeProratedPrice` | Replacement takes effect immediately, and the billing cycle remains the same. The price for the remaining period will be charged. This option is only available for subscription upgrade. |\n| `ImmediateWithTimeProration` | Replacement takes effect immediately, and the remaining time will be prorated and credited to the user. This is the current default behavior. |\n| `ImmediateWithoutProration` | Replacement takes effect immediately, and the new price will be charged on next recurrence time. The billing cycle stays the same. |"]]