-
Notifications
You must be signed in to change notification settings - Fork 43
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
getTransactions() returns future transactions in newer version of phpFinTS #463
Comments
PHP 7.3 is not supported by this library, so perhaps we shouldn't spend our time debugging why it behaves weirdly. |
@Philipp91 Thank you! That parameter was what I was looking for. One weird thing: This parameter removes the not yet booked transactions, which is correct and expected. But enabling it again the not yet booked transactions return "true" for getBooked(). Shouldn't they return "false"? This is related to the latest version of the library and PHP 8.3. The older library with PHP 7.3 definitely does not need to be debugged. It was just unexpected that the newer version would return them while the older one did not. |
Is this from |
Try inserting |
We're using That's a general observation I've made with the current version. It has nothing to do with the older version. This example transaction is not correctly not being returned for includeUnbooked = false. But when using includedUnbooked = true it's returned with booked = true:
|
The logic to detect (un)booked transactions was added by @nemiah in 4d0f74d (7 years ago). Do you happen to recall how that The |
Personally, I always use this library with After reading the code, I would think we get We could:
|
This seems to be a bigger issue... |
It's the same request, only one request. It always returns booked and unbooked transactions from the server in separate fields of a single response. The includeUnbooked option only controls whether the unbooked field is also evaluated (in addition to the booked field) when reading the server's response. |
Okay, so there is a booked field and an unbooked field. Since getBooked() does not work at all in the moment and one transaction probably cannot be booked and unbooked at the same time, wouldn't it be a solution to just use the inverted vale of the unbooked fields for getBooked()? |
That would be what I proposed as option (2.) above. |
Hi,
we're currently running two instances of phpFinTS: one older one under PHP 7.3 and a newer one (the current one here on github) under PHP 8.3.
We've noticed a difference between the result of getTransactions() between the two: in the older version transactions like direct debit which are already registered but will be executed some days in the future (generally shown in light grey in online banking software) are not being returned as if they would not exist. In the newer version they are returned as any other transaction and even return isBooked = true. So it's not possible to know anymore of these transactions have really been booked yet except for manually comparing their valutaDate with the current date.
Is this the intended procedure to identify these transactions in the newer version or is there a flag or method to avoid them being returned by getTransactions()?
We don't want to use these transactions if we cannot be sure of the direct debit to be successful.
Thank you in adavance!
The text was updated successfully, but these errors were encountered: