@nkhind/vivawallet-sdk is published to the public npm registry and works in any Node.js project that supports TypeScript. Install it once, import the client you need, and you are ready to make authenticated API calls — no additional HTTP client or token-management setup required.
Requirements
Before installing, make sure your environment meets the following minimum versions:Install
NPM package
View the package on npm to check the latest published version, package metadata, and registry details.
Import the clients
The SDK exports each client class as a named export from the package root. Import only the clients you need:getSmartCheckout is a synchronous helper that builds the VivaWallet hosted-checkout redirect URL from a payment order code. It accepts an orderCode (string), an optional dev flag for the demo environment, and optional color and paymentMethod query parameters: