npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@accurateitsolutionorg/zvt-client

v0.2.0

Published

Unified TypeScript ZVT client for Verifone and Clover terminals (AccurateItSolution)

Downloads

210

Readme

@accurateitsolutionorg/zvt-client

Unified TypeScript ZVT client for both Verifone and Clover terminals.

Install

npm install @accurateitsolutionorg/zvt-client

Quick Start

import { ZvtClient } from "@accurateitsolutionorg/zvt-client";

const client = new ZvtClient(
  {
    terminal: "clover", // "verifone" | "clover"
    host: "192.168.178.132",
    port: 25690, // Clover default; Verifone usually 20007
    password: "000000", // 6 digits if terminal requires password
    orderNo: "1234", // used by Verifone legacy payload mode
  },
  (entry) => console.log("[ZVT]", entry),
);

const auth = await client.authorize(100); // 100 cents = 1.00
console.log(auth);

Constructor

new ZvtClient({
  terminal: "verifone" | "clover",
  host: string,
  port: number,
  password?: string,
  orderNo?: string | number,
}, forwardLog?)

Methods

  • register(opts?)
  • status(opts?)
  • authorize(amountCents, opts?)
  • cancel()
  • raw(hex)
  • reconcileLast(opts?)
  • clearCooldown()
  • cooldownStatus()

Notes

  • password validation: exactly 6 digits when required.
  • Verifone:
    • supports orderNo/reference in legacy payload mode.
  • Clover:
    • uses readiness probing + cooldown guard to avoid early retries after abort/cancel.

Changelog

0.2.0

Fixes intermittent false "success" results on both Verifone and Clover paths - transactions the terminal actually rejected or aborted could be silently reported as approved when using the POS integration (direct terminal payments were unaffected, since they don't go through this classification logic):

  • The byte sequence 84 A0 00 was mislabeled as "AUTH accepted, transaction started". Per the ZVT spec, any 84 <code> 00 frame is a NACK (the terminal rejecting the request) - the opposite of what the code assumed. Early socket closes following a NACK are no longer treated as evidence of success.
  • 06 1E (Abort from PT) was only recognized for one hardcoded reason code (061e019b). Any other abort reason - including 0x6C ("card not admitted"/general decline, the most common one) - fell through unclassified, producing an ambiguous "unknown" outcome instead of a definitive decline/abort.
  • Terminal display text is CP437-encoded, not latin1 - German umlauts (ä ö ü ß) decoded to the wrong characters, and the in-progress/declined/aborted text matchers only recognized English phrases. A German-language terminal's status messages (e.g. "vorgang abgebrochen", "kundeneingabe bitte warten") were almost entirely invisible to the classifier, which is what let aborted/rejected payments silently default to "success" after enough unrecognized status polls.

All three fixes were verified against a real failure log (byte-for-byte replay of the captured frames) before release.

Build

npm run build

Publish

npm login
npm publish --access public