Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Payments

Hierarchy

Index

Constructors

Properties

#consumeTransations: Record<string, Transaction<ConsumePlayerPurchaseOutput>> = {}
#purchaseTransations: Record<string, Transaction<PurchasePlayerPurchaseOutput>> = {}
#purchasedList: PlayerPurchaseID[] = []
_events: EventLite = ...

Accessors

  • get isAvailable(): boolean
  • get purchases(): PlayerPurchaseID[]

Methods

  • _setPurchasedList(products: PlayerPurchaseID[]): void
  • _sync(): Promise<void>
  • consume(__namedParameters: Omit<ConsumePlayerPurchaseInput, "platformData">): Promise<Transaction<ConsumePlayerPurchaseOutput> | PurchasePlayerPurchaseResult>
  • Parameters

    • __namedParameters: Omit<ConsumePlayerPurchaseInput, "platformData">

    Returns Promise<Transaction<ConsumePlayerPurchaseOutput> | PurchasePlayerPurchaseResult>

  • fetchProducts(): Promise<PlayerPurchasesOutput>
  • getPurchase(idOrTag: string | number): PlayerPurchaseID
  • has(idOrTag: string | number): boolean
  • off<ET>(type: ET, handler: ((event: PaymentsEvents[ET]) => void)): void
  • on<ET>(type: ET, handler: ((event: PaymentsEvents[ET]) => void)): void
  • once<ET>(type: ET, handler: ((event: PaymentsEvents[ET]) => void)): void
  • purchase(__namedParameters: Omit<PurchasePlayerPurchaseInput, "platformData">): Promise<Transaction<PurchasePlayerPurchaseOutput> | PurchasePlayerPurchaseResult>
  • Parameters

    • __namedParameters: Omit<PurchasePlayerPurchaseInput, "platformData">

    Returns Promise<Transaction<PurchasePlayerPurchaseOutput> | PurchasePlayerPurchaseResult>

Generated using TypeDoc