# GTK GUI: Integrating with online banking

**URL:** <https://discuss.tryton.org/t/gtk-gui-integrating-with-online-banking/5509>\
**Category:** Developer\
**Created:** [September 1, 2022, 7:24am UTC](https://discuss.tryton.org/t/gtk-gui-integrating-with-online-banking/5509 "2022-09-01T07:24:52Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![htgoebel](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/htgoebel/32/1256_2.png) [@htgoebel](https://discuss.tryton.org/u/htgoebel)\
**Post date:** [September 1, 2022, 7:24am UTC](https://discuss.tryton.org/t/gtk-gui-integrating-with-online-banking/5509/1 "2022-09-01T07:24:52Z")

</div>

Hi,

did anyone create a plugin for GTK client to integrate an external online banking tool like AqBanking? I’m imagine something like GnuCash does, see picture. Anyhow, I would appreciate different implementations, too 🙂

 ![grafik](https://discuss-cdn.tryton.org/uploads/default/original/2X/3/3493087b2bb2d61ccc981cbb4041d34071ae0935.png)

More about AqBaning in GnuCash:

> **[AqBanking - GnuCash](https://wiki.gnucash.org/wiki/Online_Banking)**

In more detail: I want a menu-entry (or some other trigger) to start this process:

- export the tasks (wire transfer, direct debits) for the bank
- start the banking application and make it
  - upload the tasks to the bank
  - download bank statements

- import the bank statements into Tryton

I don’t want this to be a server module for several reasons:

- The solution should be acceptable even in hosted environments — in which case the threat model includes server breaches and misuse by personnel. Thus the banking PIN shall not go to the Tryton server to limit the damage caused by a potential breach.
- Authentication to the bank might require more interaction than just entering the PIN. (At least in Germany you need to re-authenticate using 2FA every 90 days or so.) Given there are already banking applications providing everything (including a GUI), I’d prefer to reuse these instead of implementing another interaction communication — which would requires extensions to the Tryton Client, too.

---

<div class="post-metadata">

**Author:** ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)\
**Post date:** [September 1, 2022, 8:29am UTC](https://discuss.tryton.org/t/gtk-gui-integrating-with-online-banking/5509/2 "2022-09-01T08:29:00Z")

</div>

In tryton we have several account\_statement modules used to download transactions from banks. I guess you can create one with AqBanknig if it is usefull.

Then you will post all your bank moves using the [account\_statement](https://docs.tryton.org/projects/modules-account-statement/en/latest/) functionalities.

This way it will be available for both GTK and web interfaces.

---

<div class="post-metadata">

**Author:** ![htgoebel](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/htgoebel/32/1256_2.png) [@htgoebel](https://discuss.tryton.org/u/htgoebel)\
**Post date:** [September 1, 2022, 9:50am UTC](https://discuss.tryton.org/t/gtk-gui-integrating-with-online-banking/5509/3 "2022-09-01T09:50:25Z")

</div>

> [@pokoli](#):
>
> In tryton we have several account\_statement modules used to download transactions from banks.

Are you sure? account\_statement\_aeb43, account\_statement\_code and account\_statement\_ofx are documented to „implement the import of the“ respective file as statement.

I’m not seeking the import functionality, but the integration of the external banking tool into the GUI. So the user doesn’t need to change tools, download a file, upload it into tryton. This is silly work a computer can do faster and less errorprone.

Communicating with the bank requires interactive authentication, which means, GUI interaction. I can’t see how a server module could provide this.

---

<div class="post-metadata">

**Author:** ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)\
**Post date:** [September 1, 2022, 10:12am UTC](https://discuss.tryton.org/t/gtk-gui-integrating-with-online-banking/5509/4 "2022-09-01T10:12:31Z")

</div>

Of course current solutions just import a file, but if you have a way to just import the data directly without a file we should just use the same wizard and just download the right data.

> [@htgoebel](#):
>
> Communicating with the bank requires interactive authentication, which means, GUI interaction. I can’t see how a server module could provide this.

Sincerly I do not know how the functionality you presented works and you did not explain. So we can not think how to design the same alternative.

But as far as there is some API to pull the data, I do not see why it should be done fromm the GUI.

---

<div class="post-metadata">

**Author:** ![jgras](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/jgras/32/285_2.png) [@jgras](https://discuss.tryton.org/u/jgras)\
**Post date:** [September 2, 2022, 9:41am UTC](https://discuss.tryton.org/t/gtk-gui-integrating-with-online-banking/5509/5 "2022-09-02T09:41:48Z")

</div>

I connected to [willuhn.de :: home of jameica & hibiscus](https://www.willuhn.de/products/hibiscus/) - you can run a webserver in hibiscus and read the data via rpc.

---

<div class="post-metadata">

**Author:** ![htgoebel](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/htgoebel/32/1256_2.png) [@htgoebel](https://discuss.tryton.org/u/htgoebel)\
**Post date:** [September 4, 2022, 5:55pm UTC](https://discuss.tryton.org/t/gtk-gui-integrating-with-online-banking/5509/6 "2022-09-04T17:55:03Z")

</div>

I detailes the explanation of wha I’m seeking in the original posting.

---

<div class="post-metadata">

**Author:** ![htgoebel](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/htgoebel/32/1256_2.png) [@htgoebel](https://discuss.tryton.org/u/htgoebel)\
**Post date:** [September 4, 2022, 6:02pm UTC](https://discuss.tryton.org/t/gtk-gui-integrating-with-online-banking/5509/7 "2022-09-04T18:02:43Z")

</div>

Interesting. Did I understand this correctly: Hibiscus is running on the Server and your Tryton desktop client plugin communicated with it using RPC. How do you handle 2FA then? Eg. the „flicker code“ used in chipTAN?

---

<div class="post-metadata">

**Author:** ![SISalp](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/sisalp/32/200_2.png) [@SISalp](https://discuss.tryton.org/u/SISalp)\
**Post date:** [September 10, 2022, 8:07am UTC](https://discuss.tryton.org/t/gtk-gui-integrating-with-online-banking/5509/8 "2022-09-10T08:07:39Z")

</div>

> [@htgoebel](#):
>
> The solution should be acceptable even in hosted environments — in which case the threat model includes server breaches and misuse by personnel. Thus the banking PIN shall not go to the Tryton server to limit the damage caused by a potential breach.

Do you mean a server might be less safe than a workstation ?  
The industry usually considers the opposite.  
Or I may have misunderstood.

---

<div class="post-metadata">

**Author:** ![htgoebel](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/htgoebel/32/1256_2.png) [@htgoebel](https://discuss.tryton.org/u/htgoebel)\
**Post date:** [September 10, 2022, 12:48pm UTC](https://discuss.tryton.org/t/gtk-gui-integrating-with-online-banking/5509/9 "2022-09-10T12:48:53Z")

</div>

I mean the server might be less trustworthy then the workstation since it belongs to a third party (the service provider). „Access by unauthorized personnel“ (of the provider) is the threat I want to avoid.

---

<div class="post-metadata">

**Author:** ![SISalp](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/sisalp/32/200_2.png) [@SISalp](https://discuss.tryton.org/u/SISalp)\
**Post date:** [September 10, 2022, 2:32pm UTC](https://discuss.tryton.org/t/gtk-gui-integrating-with-online-banking/5509/10 "2022-09-10T14:32:57Z")

</div>

You are in a very specific situation though.  
You should never use a saas service if you don’t trust the host more than yourself.  
Self-hosting is the only way but you have to be in a protected building at least.  
There is nothing weaker in an infrastructure than the user’s device. No browser and no mail client is a minimum.

---

<div class="post-metadata">

**Author:** ![jgras](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/jgras/32/285_2.png) [@jgras](https://discuss.tryton.org/u/jgras)\
**Post date:** [September 12, 2022, 8:31am UTC](https://discuss.tryton.org/t/gtk-gui-integrating-with-online-banking/5509/11 "2022-09-12T08:31:08Z")

</div>

> [@htgoebel](#):
>
> Hibiscus is running on the Server and your Tryton desktop client plugin communicated with it using RPC. How do you handle 2FA then? Eg. the „flicker code“ used in chipTAN?

Yes - I read the done transactions and write “Stapelbuchungen” to Hibiscus. This is recorded in Tryton - but you have to confirm in Hibiscus. All the Auth/Confirm is done in Hibiscus - it would be far too time-consuming to recreate this in tryton.

The only thing that can happen is that someone forgets to confirm the daily bookings in Hibiscus. But since these are also marked as pending there and Hibiscus is often used, this never happens. In addition, I find it quite practical that the bookings from Trtyon can be initialised by almost anyone but can only be executed by a person with bank access.
