Skip to main content
The Deno 2 Release Candidate is here
Learn more
class PaymentHelper
import { PaymentHelper } from "https://deno.land/x/sptaki@1.2.0/helpers/PaymentHelper.d.ts";

Constructors

new
PaymentHelper(configServer: ConfigServer)

Properties

protected
configServer: ConfigServer
protected
inventoryConfig: IInventoryConfig

Methods

getCurrency(currency: string): string

Gets currency TPL from TAG

isMoneyTpl(tpl: string): boolean

Is the passed in tpl money (also checks custom currencies in inventoryConfig.customMoneyTpls)