mirror of
https://github.com/node-ebics/node-ebics-client.git
synced 2025-12-17 00:52:46 +00:00
examples: Externalize configuration values and allow for multiple environments
In order to more easily manage testing of various order types as well as production, development etc. environments, externalize this config values. Signed-off-by: Herman van Hazendonk <github.com@herrie.org>
This commit is contained in:
@@ -3,15 +3,9 @@
|
||||
'use strict';
|
||||
|
||||
const ebics = require('../index');
|
||||
const configjs = require('./config.js');
|
||||
|
||||
const client = new ebics.Client({
|
||||
url: 'https://ebics.server',
|
||||
partnerId: 'PARTNER',
|
||||
userId: 'USER',
|
||||
hostId: 'HOST',
|
||||
passphrase: 'test', // keys-test will be encrypted with this passphrase
|
||||
keyStorage: ebics.fsKeysStorage('./keys-test'),
|
||||
});
|
||||
const client = gClient;
|
||||
|
||||
// New keys will be generated and saved in ./keys-test
|
||||
client.send(ebics.Orders.INI)
|
||||
|
||||
Reference in New Issue
Block a user