Skip to main content

ProductPurchaseButton

ZEPETO.Product.ProductPurchaseButton

Class managing the functionality of an in-World product purchase button.

Hierarchy

Constructors

constructor

new ProductPurchaseButton()

Overrides

UnityEngine.MonoBehaviour.constructor

Accessors

product

get product(): ProductRecord

Retrieves the in-World product information associated with the productId.

Returns

ProductRecord


productId

get productId(): string

Gets the ID of the in-World product available for purchase.

Returns

string

Methods

SetProductId

SetProductId($productId): void

Sets the ID of an in-World product available for purchase using this button.

Parameters

NameTypeDescription
$productIdstringProduct ID.

Returns

void