Phaser API Documentation

  Version: 
getProduct(productID)

Description:

Fetches a single Product from the game's product catalog.

The product catalog must have been populated using getCatalog prior to calling this method.

Use this to look-up product details based on a purchase list.

Parameters:

name type description
productID string

The Product ID of the item to get from the catalog.

Returns:
Description:

The Product from the catalog, or null if it couldn't be found or the catalog isn't populated.

Type:
  • Product
Examples:
Since: 3.17.0