nemiah / phpFinTS

PHP library to communicate with FinTS/HBCI servers
MIT License
131 stars 40 forks source link

Show TAN methods #375

Closed lindstrom79 closed 2 months ago

lindstrom79 commented 2 years ago

Hello,

I noticed when I use phpFinTS with my VR bank account I get 4 TAN methods back and show them. For example I not see SecureGo plus which I have. When I choose SecureGo it also works nevertheless.

But when I use the same bank data with my bank software MoneyMoney I see some more - even SecureGo plus. Even TAN methods which I don't have appear there.

Will phpFinTS always show the latest TAN methods that belong to a user? If so, why is SecureGo plus missing then?

Screenshot 2022-07-12 at 09 58 53 Screenshot 2022-07-13 at 07 52 06

uxxman commented 2 years ago

had the same question 👍🏻

Philipp91 commented 2 years ago

Will phpFinTS always show the latest TAN methods that belong to a user?

The phpFinTS library shows all the TAN modes that are available to the user according to the server's response. More specifically:

  1. The BPD contains a list of all TAN modes that the bank supports, independent of the user. This should contain the "missing ones" -- you can verify this by doing print_r($fints->getBpd()->allTanModes).
  2. From that list, the library only returns the subset available to the user according to the user data. You can inspect that subset with print_r($fints->allowedTanModes).

If so, why is SecureGo plus missing then?

My guess is that it's not on the allowlist from that second step above. So the new question is: Why does MoneyMoney show it?

Philipp91 commented 1 year ago

Did you figure out the reason here?