nets-kar

1.0.4 • Public • Published

Nets KAR Web Service API

This is a nodejs library that requests the Nets KAR Web Service API.

Contains both AMD and ESM modules and uses request for HTTP requests.

Requirements

You'll need a PKCS12 (.p12) certificate and a passphrase for the embedded private key.

Usage

Example:

import { createKar } from 'nets-kar'

createKar({ certificate: 'cert.p12', passphrase: '' })
  .verifyOwner('00000000000', '11111111111')
  .then(({ code, success, message }) => console.log(code, success, message))
  .catch(error => console.error('Request error', error))

Set the mode option to "production" when putting this into production. The default is "development".

Development

Uses Parcel for building the final AMD module.

Run npm run build to run build and npm run test for unit tests.

Documentation

Readme

Keywords

none

Package Sidebar

Install

npm i nets-kar

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

18.1 kB

Total Files

5

Last publish

Collaborators

  • andersevenrud