1.0.0 • Published 5 years ago

@oddhill/bankid v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

BankID API Client

Build Status Coverage Status Greenkeeper badge

This package will help you make requests to the BankID SOAP API.

Requirements

  • A pfx certificate issued by a certified Bank.
  • The soap module needs to be installed as a dependency.

Getting started

Run the following command in your terminal to install the module to your project.

NPM

npm install @oddhill/bankid soap

Yarn

yarn add @oddhill/bankid soap

Example

Below is an example showing how to use the library when making a request to the Authenticate method on the BankID SOAP API.

const bankid = require('bankid);

const options = {
	pfx: './path-to-your-pfx-certificate.pfx',
	passphrase: 'certpassphrasse',
};

bankid(options, (err, service) => {
	if (err) console.log(err);
	
	const args = {
		personalNumber: '199801011234',
	};
	
	service.authenticate(args, (err, response) => {
		console.log(response);
	});
});
1.0.0

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

8 years ago

0.1.0

8 years ago