Provider-neutral, title-scoped commerce. Guest games configure only the API base URL, never global account/admin auth. Hosted account pages use their own user JWT and limited checkout capability; playerToken overrides auth per request. Install/title tokens cannot authorize money, ownership, refunds, or catalog changes.

Each result preserves payment versus fulfillment versus settlement. Redirects and postMessage events only trigger an authoritative refresh. A timeout is unknown; reconcile the original attempt instead of charging another provider.

Constructors

Methods

  • Optional self-only purchase/usage history. A user JWT selects that user; a scoped playerToken selects its bound title/player/environment and requires the exact approved game Origin. No MCP/install token or caller-selected user_id/player_id is accepted. JWT environment defaults to live; scoped tokens default to their bound environment. Admin listOrders stays separate.

    Read response.data.data.purchases and .pagination. Use grant_usage for lot consumption/refund/expiry status, listEntitlements for current aggregate inventory, and consume for explicit gameplay spending. History never grants inventory and durable/pass is_used is null rather than a guessed boolean.

    Parameters

    Returns AxiosPromise<MicrotransactionResponse<MicrotransactionMyPurchases>>

  • Upload an image/video through existing Glitch Media processing with title and actor ownership. Attach its returned Media ID to products/branding. Does not create a social-library post, scheduler, or new payment product.

    Parameters

    • title_id: string
    • media: Blob | File
    • Optional onUploadProgress: ((event) => void)
        • (event): void
        • Parameters

          • event: AxiosProgressEvent

          Returns void

    • Optional options: Pick<AxiosRequestConfig<any, any>, "signal" | "timeout">

    Returns AxiosPromise<MicrotransactionResponse<MicrotransactionMedia>>

Generated using TypeDoc