Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix usage of kundensystemId #471

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/Fhp/FinTs.php
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,8 @@ public function selectTanMode($tanMode, $tanMedium = null)
}
$this->selectedTanMode = $tanMode instanceof TanMode ? $tanMode->getId() : $tanMode;
$this->selectedTanMedium = $tanMedium instanceof TanMedium ? $tanMedium->getName() : $tanMedium;

$this->kundensystemId = $this->options->kundensystemId;
}

/**
Expand Down
9 changes: 9 additions & 0 deletions lib/Fhp/Options/FinTsOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ class FinTsOptions
/** @var int */
public $timeoutResponse = 30;

/**
* The Kundensystem-Id as returned by the bank and persisted by the application code
* This is optional, but it prevents having to re-authenticate every time on login
* if not using a persisted instance with FinTs::persist()
* Use DialogInitialization::getKundensystemId() on the return object of FinTs::login(), to get the current Kundensystem-Id
* @var string
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

     * @var string|null
     */
    public $kundensystemId = null;

*/
public $kundensystemId;

/**
* @throws \InvalidArgumentException If the options are invalid.
*/
Expand Down