getPurchaseCategory

Gets the category of a purchased product.

Return

The PurchaseCategory or null if not found.

Parameters

productId

The product ID to check.