Product Replacement
data class ProductReplacement(val mode: ProductReplacement.Mode, val oldProductId: String?, val oldPurchaseToken: String?)(source)
Describes an existing subscription that a purchase replaces, instead of the purchase being bought alongside it.
A paywall's Purchase action sets this when it's configured to replace the user's subscription. The SDK only passes it on when the user has an active subscription that shares an entitlement with the product being purchased; otherwise the purchase is a normal one.
Properties
Link copied to clipboard
How the store should charge for the switch.
Link copied to clipboard
The identifier of the product being replaced, if known. For Google Play products this is the subscription ID of the purchase being replaced.
Link copied to clipboard
The Google Play purchase token of the subscription being replaced, used as SubscriptionUpdateParams.oldPurchaseToken. Null for custom store products.