<commit_before>node-multisafepay
=================

Node.js wrapper for the MultiSafePay Connect API

### Disclaimer

Not all methods are available yet. Feel free to add them and send in a pull request

# Install

```bash
npm install multisafepay
```
# Usage 

Create a client
```javascript
var multisafepay = require('multisafepay');
var client = api.createClient({
	account: '12345678', 
	site_id: '12345', 
	site_secure_code: '123456'
});
```
The client can be used to call methods on the MultiSafePay API
```javascript
// Get available payment gateways
client.gateways('nl', 'nl_NL', function(data) {
  console.log(data); // Contains an array with gateways
});
```

# Options
You can set the following options when creating the client:
```javascript
{
	account: '12345678', // (required) The account ID you receive from MultiSafePay
	site_id: '12345', // (required) The site ID you get when creating a site in the MultiSafePay client area
	site_secure_code: '123456', // (required) The Site Secure Code that belongs to the site you created
	env: 'production', // (optional) The API environment, can be 'production' or 'test'
	returnType: 'object', // (optional) The type of the return data. By default, a JS object is returned, but it can also be set to 'xml'
	userAgent: 'node-multisafepay' // (optional) The User Agent that is sent with every request
}

# Support
Found a bug? Have a great idea? Feel free to create an issue or a pull request!

# License

The MIT License (MIT)

Copyright (c) 2014 <NAME>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
<commit_msg>Forgot to close the codestyle block<commit_after>node-multisafepay
=================

Node.js wrapper for the MultiSafePay Connect API

### Disclaimer

Not all methods are available yet. Feel free to add them and send in a pull request

# Install

```bash
npm install multisafepay
```
# Usage 

Create a client
```javascript
var multisafepay = require('multisafepay');
var client = api.createClient({
	account: '12345678', 
	site_id: '12345', 
	site_secure_code: '123456'
});
```
The client can be used to call methods on the MultiSafePay API
```javascript
// Get available payment gateways
client.gateways('nl', 'nl_NL', function(data) {
  console.log(data); // Contains an array with gateways
});
```

# Options
You can set the following options when creating the client:
```javascript
{
	account: '12345678', // (required) The account ID you receive from MultiSafePay
	site_id: '12345', // (required) The site ID you get when creating a site in the MultiSafePay client area
	site_secure_code: '123456', // (required) The Site Secure Code that belongs to the site you created
	env: 'production', // (optional) The API environment, can be 'production' or 'test'
	returnType: 'object', // (optional) The type of the return data. By default, a JS object is returned, but it can also be set to 'xml'
	userAgent: 'node-multisafepay' // (optional) The User Agent that is sent with every request
}
```

# Support
Found a bug? Have a great idea? Feel free to create an issue or a pull request!

# License

The MIT License (MIT)

Copyright (c) 2014 <NAME>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

{'fraction_non_alphanumeric': 0.09568527918781726, 'fraction_numerical': 0.02131979695431472, 'mean_word_length': 4.686868686868687, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '389810', 'n_tokens_mistral': 1186, 'n_tokens_neox': 1073, 'n_words': 539}