@suluk/billing - v0.2.0
    Preparing search index...

    Function calculateTax

    • Sales-tax / VAT for an on-site or auto top-up. The taxable base is the credits subtotalCents (tax_behavior=exclusive → tax added on top); the processing service fee is a pass-through, not part of the taxable sale. Located by the saved card's billing address (preferred — works off-session) or the request IP. GRACEFUL — no location or any failure yields { taxCents: 0 } so a top-up always proceeds. When active, the returned calculationId is recorded via recordTaxTransaction.

      Parameters

      Returns Promise<TaxResult>