BillingFlowParams.SubscriptionUpdateParams.ReplacementMode
public
static
abstract
@interface
BillingFlowParams.SubscriptionUpdateParams.ReplacementMode
implements
Annotation
com.android.billingclient.api.BillingFlowParams.SubscriptionUpdateParams.ReplacementMode |
Supported replacement modes to replace an existing subscription with a new one.
Summary
Constants | |
---|---|
int |
CHARGE_FULL_PRICE
The new plan takes effect immediately, and the user is charged full price of new plan and is given a full billing cycle of subscription, plus remaining prorated time from the old plan. |
int |
CHARGE_PRORATED_PRICE
The new plan takes effect immediately, and the billing cycle remains the same. |
int |
DEFERRED
The new purchase takes effect immediately, the new plan will take effect when the old item expires. |
int |
UNKNOWN_REPLACEMENT_MODE
|
int |
WITHOUT_PRORATION
The new plan takes effect immediately, and the new price will be charged on next recurrence time. |
int |
WITH_TIME_PRORATION
The new plan takes effect immediately, and the remaining time will be prorated and credited to the user. |
Inherited methods | |
---|---|
Constants
CHARGE_FULL_PRICE
public static final int CHARGE_FULL_PRICE
The new plan takes effect immediately, and the user is charged full price of new plan and is given a full billing cycle of subscription, plus remaining prorated time from the old plan.
Constant Value: 5 (0x00000005)
CHARGE_PRORATED_PRICE
public static final int CHARGE_PRORATED_PRICE
The new plan 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.
Constant Value: 2 (0x00000002)
DEFERRED
public static final int DEFERRED
The new purchase takes effect immediately, the new plan will take effect when the old item expires.
Constant Value: 6 (0x00000006)
UNKNOWN_REPLACEMENT_MODE
public static final int UNKNOWN_REPLACEMENT_MODE
Constant Value: 0 (0x00000000)
WITHOUT_PRORATION
public static final int WITHOUT_PRORATION
The new plan takes effect immediately, and the new price will be charged on next recurrence time. The billing cycle stays the same.
Constant Value: 3 (0x00000003)
WITH_TIME_PRORATION
public static final int WITH_TIME_PRORATION
The new plan takes effect immediately, and the remaining time will be prorated and credited to the user.
Note: This is the default behavior.
Constant Value: 1 (0x00000001)