Skip to content

@anandsahil This information should be in the README #31

@FridgeWalaby

Description

@FridgeWalaby

@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:

  1. You create a clinet - you've done that.
  2. 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
  1. 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.
  1. 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);
  1. Now you're ready to go.

Hope this will help.

Regards,
Vlad

Originally posted by @vladhristov in #1 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions