nemiah / phpFinTS

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

Postbank Berlin responded The server does not support any HIDSES versions implemented in this library #382

Closed fafiebig closed 2 months ago

fafiebig commented 2 years ago

Hello,

first of all i am glad to have found this library. thanks to the team. i am having issues when trying to send a direct debit with sepadirectdebitbasic > xml to the postbank berlin server responded with

The server does not support any HIDSES versions implemented in this library

what kind of version do i need? btw calls to accounts and balances are fine...

Philipp91 commented 2 years ago

The error message comes from here. Note how the two functions above filter out instanceof AnonymousSegment. A segment is anonymous if its implementation doesn't exist in the library. While we normally can't deal with anonymous segments, they are useful to extend the error message. You could a similar array_filter that keeps only the anonymous segments, and then array_map them to output their BaseSegment::getVersion() value, then implode() them into a nice error message. With that patch (which you could send as a PR too), the error message would tell you which versions the server supports, then we know which ones to implement.

fafiebig commented 2 years ago

Danke für die schnelle Antwort. Werde mal schauen was ich da tun kann.