phpFinTS icon indicating copy to clipboard operation
phpFinTS copied to clipboard

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

Open fafiebig opened this issue 3 years ago • 2 comments

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...

fafiebig avatar Aug 09 '22 13:08 fafiebig

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.

Philipp91 avatar Aug 09 '22 20:08 Philipp91

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

fafiebig avatar Aug 10 '22 11:08 fafiebig