PurchaseDocumentation
Purchase

Pricing and Catalog

Render a real pricing page from the Purchase catalog.

The public pricing page reads the normalized commercial catalog and renders it as a product experience.

Relevant files:

Public catalog API

The app exposes a typed endpoint:

HttpApiGroup.make("catalog").add(HttpApiEndpoint.get("get", "/catalog").addSuccess(CatalogApiResponse))

That returns:

  • active environment
  • active provider
  • normalized CommercialCatalog

What the page renders

The pricing page groups offers into:

  • subscriptions
  • one-time purchases
  • credit packs

That is the value of the catalog model. The page never needs to think in terms of provider-native product objects.

On this page