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

@nkhind/vivawallet-sdk

v2.3.1

Published

Non-Official VivaWallet API SDK

Readme

VivaWallet Node SDK

npm version npm downloads license types docs

Non-official TypeScript SDK for VivaWallet APIs.

Use this package when you need a typed Node.js wrapper around VivaWallet standard merchant payments, Marketplace, ISV, webhooks, wallets, bank transfers, POS helpers, and related API modules.

Full documentation: vivawallet-sdk-docs.mintlify.app

Install

npm install @nkhind/vivawallet-sdk
yarn add @nkhind/vivawallet-sdk
pnpm add @nkhind/vivawallet-sdk

Minimal SmartCheckout Demo

Create a payment order on your server, then redirect the customer to VivaWallet SmartCheckout.

import { Vivawallet, getSmartCheckout } from '@nkhind/vivawallet-sdk';

const vivawallet = new Vivawallet({
  clientId: process.env.VIVA_CLIENT_ID!,
  clientSecret: process.env.VIVA_CLIENT_SECRET!,
  merchantId: process.env.VIVA_MERCHANT_ID!,
  apikey: process.env.VIVA_API_KEY!,
  dev: process.env.VIVA_ENV === 'demo',
});

const order = await vivawallet.payments.createOrder({
  amount: 1000, // EUR 10.00, expressed in cents
  customerTrns: 'Order #1234',
  customer: {
    email: '[email protected]',
    fullName: 'John Doe',
    requestLang: 'en-GB',
  },
  sourceCode: 'Default',
});

if (!order.success || !order.data) {
  throw new Error(order.message);
}

const checkoutUrl = getSmartCheckout({
  orderCode: String(order.data.orderCode),
  dev: process.env.VIVA_ENV === 'demo',
});

console.log('Redirect customer to:', checkoutUrl);

Every async SDK method returns a MethodReturn result. Check result.success before reading result.data; API failures are returned as typed failure values instead of being thrown for normal VivaWallet errors.

Available Clients

import {
  Vivawallet,
  VivaISV,
  Marketplace,
  getSmartCheckout,
} from '@nkhind/vivawallet-sdk';
  • Vivawallet: standard merchant client for payment orders, transactions, webhooks, bank transfers, wallets, data services, POS helpers, and legacy modules.
  • VivaISV: ISV / reseller client for connected accounts, merchant payment orders, ISV transactions, source helpers, webhooks, and POS modules.
  • Marketplace: platform client for marketplace payment orders, sellers, transactions, transfers, webhooks, and source helpers.
  • getSmartCheckout: helper that builds the hosted SmartCheckout redirect URL from an orderCode.

Documentation

The README intentionally stays small. Use the Mintlify docs for setup details, credentials, method signatures, examples, and TypeScript type references:

https://vivawallet-sdk-docs.mintlify.app

Disclaimer

This SDK is community-maintained and is not officially affiliated with Viva Payments S.A.