Skip to content

Instantly share code, notes, and snippets.

@b3nelof0n
Created February 14, 2018 18:53
Show Gist options
  • Save b3nelof0n/9618bbec0334de7d43c790f216863310 to your computer and use it in GitHub Desktop.
Save b3nelof0n/9618bbec0334de7d43c790f216863310 to your computer and use it in GitHub Desktop.
define('FHP_BANK_URL', 'https://hbci.postbank.de/banking/hbci.do'); # HBCI / FinTS Url can be found here: https://www.hbci-zka.de/institute/institut_auswahl.htm (use the PIN/TAN URL)
define('FHP_BANK_PORT', 3000); # HBCI / FinTS Port can be found here: https://www.hbci-zka.de/institute/institut_auswahl.htm
define('FHP_BANK_CODE', 'BLZ'); # Your bank code / Bankleitzahl
define('FHP_ONLINE_BANKING_USERNAME', 'POSTBANK KONTO NUMMER'); # Your online banking username / alias
define('FHP_ONLINE_BANKING_PIN', 'PIN ZUM EINLOGEN INS ONLINEBANKING'); # Your online banking PIN (NOT! the pin of your bank card!)
$fints = new FinTs(
FHP_BANK_URL,
FHP_BANK_PORT,
FHP_BANK_CODE,
FHP_ONLINE_BANKING_USERNAME,
FHP_ONLINE_BANKING_PIN
);
$aAccounts = $fints->getAccounts();
var_dump($aAccounts);
foreach ($aAccounts as $oAccount){
$saldo = $fints->getSaldo($oAccount);
var_dump($saldo);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment