https://github.com/anton-johansson/klarna-nodejs
A simple wrapper around Klarnas XMLRPC API, written in nodejs.
https://github.com/anton-johansson/klarna-nodejs
Last synced: about 2 months ago
JSON representation
A simple wrapper around Klarnas XMLRPC API, written in nodejs.
- Host: GitHub
- URL: https://github.com/anton-johansson/klarna-nodejs
- Owner: anton-johansson
- License: apache-2.0
- Created: 2015-02-01T20:14:26.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-04T20:49:14.000Z (about 9 years ago)
- Last Synced: 2025-03-25T03:41:32.925Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 336 KB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# klarna-nodejs [](https://www.npmjs.com/package/klarna-nodejs) [](https://travis-ci.org/anton-johansson/klarna-nodejs) [](https://coveralls.io/r/anton-johansson/klarna-nodejs) 
> A simple wrapper around [Klarnas](http://www.klarna.com/) [XMLRPC API](http://developer.klarna.com/en/se+java/kpm/checkout-api), written in nodejs.
## Install
```
$ npm install --save klarna-nodejs
```## Usage
```js
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](examples/).
## 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](https://github.com/anton-johansson)