node-ebics-client
node-ebics-client copied to clipboard
@anandsahil This information should be in the README
@anandsahil Hi, First part, where you define clinet is OK. You do not have to generate keys yourself. It is done automatically when initialisation process is started. Here are the steps:
- You create a clinet - you've done that.
- You send initialisation process orders (INI and HIA) like that:
- get INI order - you've done it;
- with async/await:
const response = await client.send(iniOrder); - without async/await
client.send(iniOrder).then(r => console.log(r)).catch(e => console.log(e)); - do the same for HIA order
- You have to generate and print ini letter. You can do it like this:
const bankName = 'Zürcher Kantonalbank';
const template = fs.readFileSync('your_path_to_this_file/ini.hbs').toString();
const letter = new ebics.BankLetter({ client, bankName, template });
await letter.serialize('bankLetterFilename.html'); // or then, catch
- Open the html file. Print it. Send it to the bank. Now they are suppose to activate your account.
- Once your account is activated by the bank, now you're ready to download their (bank) keys:
- Execute HPB order and get the keys
const hpbOrder = ebics.Orders.HPB;
const response = await client.send(hpbOrder);
await client.setBankKeys(response.bankKeys);
- Now you're ready to go.
Hope this will help.
Regards, Vlad
Originally posted by @vladhristov in https://github.com/node-ebics/node-ebics-client/issues/1#issuecomment-512206846
Very helpful, thank you. JP
Thanks !
I am new to this ISO and i have to implement it. But there is no informations on the about... Can you help me ?