-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
@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 #1 (comment)
nanov, jpbuttet, Vadorequest and pac8421
Metadata
Metadata
Assignees
Labels
No labels