Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

BillingFlowParams.ProrationMode

public static abstract @interface BillingFlowParams.ProrationMode
implements Annotation

com.android.billingclient.api.BillingFlowParams.ProrationMode


Replace SKU ProrationMode.

Summary

Constants

int IMMEDIATE_AND_CHARGE_PRORATED_PRICE

Replacement takes effect immediately, and the billing cycle remains the same.

int IMMEDIATE_WITHOUT_PRORATION

Replacement takes effect immediately, and the new price will be charged on next recurrence time.

int IMMEDIATE_WITH_TIME_PRORATION

Replacement takes effect immediately, and the remaining time will be prorated and credited to the user.

int UNKNOWN_SUBSCRIPTION_UPGRADE_DOWNGRADE_POLICY

Inherited methods

From interface java.lang.annotation.Annotation

Constants

IMMEDIATE_AND_CHARGE_PRORATED_PRICE

int IMMEDIATE_AND_CHARGE_PRORATED_PRICE

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.

Constant Value: 2 (0x00000002)

IMMEDIATE_WITHOUT_PRORATION

int IMMEDIATE_WITHOUT_PRORATION

Replacement takes effect immediately, and the new price will be charged on next recurrence time. The billing cycle stays the same.

Constant Value: 3 (0x00000003)

IMMEDIATE_WITH_TIME_PRORATION

int IMMEDIATE_WITH_TIME_PRORATION

Replacement takes effect immediately, and the remaining time will be prorated and credited to the user. This is the current default behavior.

Constant Value: 1 (0x00000001)

UNKNOWN_SUBSCRIPTION_UPGRADE_DOWNGRADE_POLICY

int UNKNOWN_SUBSCRIPTION_UPGRADE_DOWNGRADE_POLICY

Constant Value: 0 (0x00000000)