dolibarr.bankimport/vendor/nemiah/php-fints/Samples/bpd.php
data 8b64fd24d3 feat: php-fints 4.0 Update + HKEKA/HKKAA Segmente (WIP)
- php-fints Bibliothek von 3.7.0 auf 4.0.0 aktualisiert
- Parser-Fix: Ignoriert zusätzliche Bank-Felder statt Exception
- HKEKA Segmente implementiert (HIEKASv5, HKEKAv5, HIEKAv5)
- HKKAA Segmente implementiert (HIKAASv1, HKKAAv1)
- GetStatementFromArchive und GetElectronicStatement Actions

HINWEIS: HKKAA/HKEKA funktionieren noch nicht mit VR Bank
(Fehler "unerwarteter Aufbau wrt DE 2" - Kontoverbindungsformat)
Normale Funktionalität (Transaktionsimport) ist nicht betroffen.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-05 15:47:27 +01:00

18 lines
976 B
PHP

<?php
/** @noinspection PhpUnhandledExceptionInspection */
/**
* SAMPLE - Fetches the BPD (bank parameter data) without having any user-specific credentials. This is mostly useful
* for advanced applications or to explore the bank's FinTS features without having/risking own credentials.
*/
require '../vendor/autoload.php';
$options = new \Fhp\Options\FinTsOptions();
$options->url = 'https://banking-dkb.s-fints-pt-dkb.de/fints30'; // HBCI / FinTS Url can be found here: https://www.hbci-zka.de/institute/institut_auswahl.htm (use the PIN/TAN URL)
$options->bankCode = '12030000'; // Your bank code / Bankleitzahl
$options->productName = 'Dummy'; // The number you receive after registration / FinTS-Registrierungsnummer. Not all banks require this just to retrieve the BPD.
$options->productVersion = '1.0'; // Your own Software product version
$bpd = \Fhp\FinTs::fetchBpd($options, new \Tests\Fhp\CLILogger());
print_r($bpd); // Tip: Put a breakpoint on this line.