Skip to content

Commit ce956ba

Browse files
authored
Merge pull request #523 from Philipp91/rm9391
Log a warning when Rückmeldungscode 9391 is received
2 parents e2e2905 + e8ab4d2 commit ce956ba

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

lib/Fhp/FinTs.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,16 @@ private function processServerResponse(BaseAction $action, Message $response): v
375375
if ($action instanceof PaginateableAction && $action->hasMorePages()) {
376376
$this->execute($action);
377377
}
378+
379+
// Check whether the server requested a Kundensystem-ID refresh.
380+
if ($response->findRueckmeldung(Rueckmeldungscode::NEUE_KUNDENSYSTEM_ID_HOLEN) !== null) {
381+
// TODO Properly implement the refresh here, see https://github.com/nemiah/phpFinTS/issues/458.
382+
$this->logger->warning(
383+
'The server asked us to refresh the Kundensystem-ID in response to a ' . gettype($action) .
384+
' action, but that is not implemented yet. This could result in authentication errors or extraneous ' .
385+
' re-authentication prompts from the bank.'
386+
);
387+
}
378388
}
379389

380390
/**

lib/Fhp/Segment/HIRMS/Rueckmeldungscode.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace Fhp\Segment\HIRMS;
44

5+
use Fhp\Protocol\DialogInitialization;
6+
57
/**
68
* Enum for the response codes that the server can send.
79
*
@@ -128,6 +130,12 @@ public static function isError(int $code): bool
128130
*/
129131
public const TEILWEISE_FEHLERHAFT = 9050;
130132

133+
/**
134+
* Neue Kundensystem-ID anfordern.
135+
* Als Antwort auf eine Dialoginitialisierungsnachricht ({@link DialogInitialization}).
136+
*/
137+
public const NEUE_KUNDENSYSTEM_ID_HOLEN = 9391;
138+
131139
/**
132140
* Kreditinstitutsseitige Beendigung des Dialoges
133141
*/

0 commit comments

Comments
 (0)