Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

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

Resources

License

Packages

No packages published
You can’t perform that action at this time.