Essential Kit
Loading...
Searching...
No Matches
BillingProductDefinition

Represents an object containing information related to billing product definition. This contains the data you set in settings.

Public Member Functions

 BillingProductDefinition (string id=null, string platformId=null, RuntimePlatformConstantSet platformIdOverrides=null, BillingProductType productType=BillingProductType.Consumable, string title=null, string description=null, bool isInactive=false, BillingProductPayoutDefinition[] payouts=null)
 Creates the product settings object.
 
string GetPlatformIdForActivePlatform ()
 Returns the store identifier for active platform.
 

Properties

string Id [get]
 The string that identifies the product within Unity environment. (read-only)
 
BillingProductType ProductType [get]
 The type of the product. (read-only)
 
string Title [get]
 The name of the product. (read-only)
 
string Description [get]
 The description of the product. (read-only)
 
bool IsInactive [get]
 Indicates whether this product is inactive. A product is considered active if it is considered for purchase. Note: If your earlier versions had a product and is not used any more, you can just enable this flag and still get the product details of past purchases.
 
BillingProductPayoutDefinition[] Payouts [get]
 The payout information. (read-only)
 
object Tag [get, set]
 Additional information associated with this product. This information is provided by the developer.
 

Constructor & Destructor Documentation

◆ BillingProductDefinition()

BillingProductDefinition ( string id = null,
string platformId = null,
RuntimePlatformConstantSet platformIdOverrides = null,
BillingProductType productType = BillingProductType::Consumable,
string title = null,
string description = null,
bool isInactive = false,
BillingProductPayoutDefinition[] payouts = null )
Parameters
idThe string that identifies the product within Unity environment.
platformIdThe identifier of product in the store. This is the identifier supplied by the native platform store(Google play console / App Store Connect).
platformIdOverridesThe overrides for the platformId.
productTypeThe type of the product. Default is BillingProductType.Consumable.
titleThe name of the product.
descriptionThe description of the product.
isInactiveIndicates whether this product is inactive. A product is considered active if it is considered for purchase.
payoutsPayout information associated with this product.