ProductDetails.SubscriptionOfferDetails

public final class ProductDetails.SubscriptionOfferDetails 


Represents the available purchase plans to buy a subscription product.

Summary

Public methods

String

Returns the base plan id associated with the subscription product.

ProductDetails.InstallmentPlanDetails

Returns the additional details of an installment plan.

String

Returns the offer id associated with the subscription product.

List<String>

Returns the offer tags associated with this Subscription Offer.

String

Returns the offer token required to pass in launchBillingFlow to purchase the subscription product with these pricing phases.

ProductDetails.PricingPhases

Returns the pricing phases for the subscription product.

Public methods

getBasePlanId

public String getBasePlanId()

Returns the base plan id associated with the subscription product.

getInstallmentPlanDetails

public ProductDetails.InstallmentPlanDetails getInstallmentPlanDetails()

Returns the additional details of an installment plan.

Note: This field is only set for an installment subscription plan. Returns null for other non-installment subscription plans.

getOfferId

public String getOfferId()

Returns the offer id associated with the subscription product.

Note: This field is only set for a discounted offer. Returns null for a regular base plan.

getOfferTags

public List<String> getOfferTags()

Returns the offer tags associated with this Subscription Offer.

getOfferToken

public String getOfferToken()

Returns the offer token required to pass in launchBillingFlow to purchase the subscription product with these pricing phases.

getPricingPhases

public ProductDetails.PricingPhases getPricingPhases()

Returns the pricing phases for the subscription product.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026年05月19日 UTC.