-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Public Access to Xml Data #42
Comments
Just to add, I came from this doc from another lib which got me confused: https://github.com/nemiah/phpFinTS/blob/master/Samples/directDebit_Sephpa.php#L45 It seems that the method had been public in the past, I guess? It is documented like so: $xml = $directDebitFile->generateXml(date("Y-m-d\TH:i:s", time())); |
Have you tried Let me know if this is what you are looking for. |
Oh, I did not find this solution. I can try it out so I can skip extending the object. But to be honest, direct access to generateXml would be a bit less quirky imo. 🤔 Thank you for your reply! :) |
According to #21, direct access to the xml content is not useful due to missing validation etc.
I don't really understand the argument behind that. E.g. in my case, I just want to download/stream one generated xml file and upload it directly to my online banking. The file isn't too big and does not have to be compressed.
In the only current way possible, I would have to store the generated zip archive, download it, delete it from the server and unarchive it at my machine..
However, I could solve my issue by just extending the file like so (which I'm not the greatest fan of):
But still, it would be nice to just have access to
SephpaDirectDebit::generateXml()
from outside the object..Anyway, thank you so much for this library! I was struggling to generate valid
PAIN00800102
for some time now and Sparkasse never accepted my xml files without any details or useful error messages.After trying this lib it worked like a charm in no time at all 🤓
The text was updated successfully, but these errors were encountered: