Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ProductDescription Constructor

public ProductDescription(string id, Purchasing.ProductMetadata metadata, string receipt, string transactionId);
public ProductDescription(string id, Purchasing.ProductMetadata metadata);
public ProductDescription(string id, Purchasing.ProductMetadata metadata, string receipt, string transactionId, Purchasing.ProductType type);

Parameters

id The store-specific ID.
metadata Localized metadata retrieved from the Store.
receipt A purchase receipt, if owned. Otherwise null.
transactionId The purchase transaction ID, if owned. Otherwise null.
type The product type (optional for products queried by Unity IAP).

Description

Create a ProductDescription.

Primarily created internally by Unity IAP.