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

@vipps-friends/vipps-js

v1.2.1

Published

A modern JavaScript library for Vipps MobilePay APIs

Readme

@vipps-friends/vipps-js

Build Status Test Coverage npm bundle size Zero Dependencies

A modern, functional, and tree-shakeable JavaScript library for integrating with the Vipps MobilePay ePayment API v1.

⚠️ Disclaimer: This is not an official Vipps MobilePay package. It is maintained by the community.

Features

  • Cross-Platform: Works in Node.js, Deno, Bun, Cloudflare Workers, and Firebase Functions.
  • Native Primitives: Uses native fetch and crypto.subtle exclusively.
  • Tree-shakeable: Functional API design (similar to Firebase v9) ensures you only bundle what you use.
  • Fully Typed: Written in plain JavaScript with comprehensive JSDoc; TypeScript declarations are included.
  • Automated Auth: Handles access token retrieval and caching automatically.

Installation

npm install @vipps-friends/vipps-js

Quick Start

1. Initialize the client

import { initializeVipps } from '@vipps-friends/vipps-js'

initializeVipps({
  clientId: 'your-client-id',
  clientSecret: 'your-client-secret',
  subscriptionKey: 'your-subscription-key',
  merchantSerialNumber: 'your-msn',
  useTest: true, // Set to false for production
})

2. Create a Payment

import { createPayment, getVipps } from '@vipps-friends/vipps-js'

const payment = await createPayment(getVipps(), {
  amount: {
    value: 1000, // 10.00 NOK
    currency: 'NOK',
  },
  reference: 'order-12345',
  paymentMethod: {
    type: 'WALLET',
  },
  userFlow: 'WEB_REDIRECT',
  returnUrl: 'https://your-store.com/callback',
  paymentDescription: 'One pair of cozy socks',
})

console.log('Redirect the user here:', payment.redirectUrl)

3. Get Payment Status

import { getPayment, getVipps } from '@vipps-friends/vipps-js'

const details = await getPayment(getVipps(), 'order-12345')

if (details.state === 'AUTHORIZED') {
  console.log('Payment is authorized!')
}

API Support

Currently, this library focuses on the ePayment API v1.

If you need support for other Vipps MobilePay APIs (Recurring, Login, Checkout, etc.), we highly encourage you to:

  1. Open an Issue: Let us know which endpoints you need.
  2. Submit a PR: Contributions are very welcome! We follow a 1-to-1 mapping with the official OpenAPI specifications.

For Vipps MobilePay Developers

If you work at Vipps MobilePay and would like to get in touch regarding the direction of this library, or if you'd like to see it become an official package, please feel free to reach out via GitHub issues or directly to the contributors.

Commercial Support

Need help with integration, custom features, or priority support? We offer paid consulting and support services to help you get the most out of your Vipps MobilePay integration. Open an issue or reach out to the maintainers.

License

MIT