A simple wrapper around Klarnas XMLRPC API, written in nodejs.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
lib
test
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
package.json

README.md

klarna-nodejs NPM version Build Status Coverage Dependencies

A simple wrapper around Klarnas XMLRPC API, written in nodejs.

Install

$ npm install --save klarna-nodejs

Usage

var Klarna = require('klarna-nodejs');

var configuration =
{
	eid: 1,
	sharedSecret: '...',
	address: 'https://payment.testdrive.klarna.com:443'
};

var klarna = new Klarna(configuration);

Examples

See examples here.

API

.getAddresses(number, callback)

Gets the addresses for given social security number or organization number.

number

Type: string

The social security or organization number.

callback(error, addresses)

Type: function

addresses

Type: array

The found addresses.

License

Apache License © Anton Johansson