AlternativeChoiceDetails

public final class AlternativeChoiceDetails
extends Object

java.lang.Object
   ↳ com.android.billingclient.api.AlternativeChoiceDetails
Included in documentation by the annotations: @Annotations.AlternativeBilling

This class is deprecated.
Use BillingClient.Builder.enableUserChoiceBilling(UserChoiceBillingListener) with UserChoiceBillingListener and UserChoiceDetails in the listener callback instead.

Details related to a user's choice of alternative billing.

Summary

Nested classes

class AlternativeChoiceDetails.Product

Details about a product being purchased.  Included in documentation by the annotations: @Annotations.AlternativeBilling

Public methods

String getExternalTransactionToken()

Returns a token that represents the user's prospective purchase via alternative billing. Included in documentation by the annotations: @Annotations.AlternativeBilling

String getOriginalExternalTransactionId()

Returns the external transaction Id of the originating subscription, if the purchase is a subscription upgrade/downgrade. Included in documentation by the annotations: @Annotations.AlternativeBilling

List<AlternativeChoiceDetails.Product> getProducts()

Returns a list of AlternativeChoiceDetails.Product to be purchased in the alternative billing flow. Included in documentation by the annotations: @Annotations.AlternativeBilling

Inherited methods

Public methods

getExternalTransactionToken

public String getExternalTransactionToken ()
Included in documentation by the annotations: @Annotations.AlternativeBilling

Returns a token that represents the user's prospective purchase via alternative billing.

Returns
String

getOriginalExternalTransactionId

public String getOriginalExternalTransactionId ()
Included in documentation by the annotations: @Annotations.AlternativeBilling

Returns the external transaction Id of the originating subscription, if the purchase is a subscription upgrade/downgrade.

Returns
String

getProducts

public List<AlternativeChoiceDetails.Product> getProducts ()
Included in documentation by the annotations: @Annotations.AlternativeBilling

Returns a list of AlternativeChoiceDetails.Product to be purchased in the alternative billing flow.

Returns
List<AlternativeChoiceDetails.Product>