• Preparing search index...
  • The search index is not available
Tidyscripts Docs
  • Tidyscripts Docs
  • common
  • apis
  • billing
  • creditsForPurchase

Function creditsForPurchase

  • creditsForPurchase(amountUsd, tier): number
  • How many credits a subscription tier grants for its price. Applies the tier's margin: credits = priceUsd * 1000 * (1 - margin)

    Parameters

    • amountUsd: number
    • tier: common.apis.billing.Tier

    Returns number

    • Defined in packages/ts_common/src/apis/billing/credits.ts:27

Settings

Member Visibility
Tidyscripts Docs
  • Loading...

Generated using TypeDoc