We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
SephpaDirectDebit::generateXml()
The Code
$xml = $directDebitFile->generateXml(date("Y-m-d\TH:i:s", time()));
In the directDebit_Sephpa sample file does not work due to the fact that generateXml() is a protected method:
directDebit_Sephpa
generateXml()
phpFinTS/Samples/directDebit_Sephpa.php
Line 45 in 63256e2
https://github.com/AbcAeffchen/Sephpa/blob/1bd00f72fe9ffb937c49af9e0045e66f98074212/src/Sephpa.php#L152
I opened an issue in the other lib also: AbcAeffchen/Sephpa#42
Maybe the sample should be updated or at least commented. I solved it by extending the other lib's file so I can expose the xml myself.
The text was updated successfully, but these errors were encountered:
Your right. Additionally the method generateXML also does not have any parameters.
generateXML
We are using $directDebitFile->generateOutput()[0]['data'] to receive the XML.
$directDebitFile->generateOutput()[0]['data']
Sorry, something went wrong.
fix(Direct Debit Sample): nemiah#418 Invalid protected method called
1ca5976
It seems that this is the way to go: AbcAeffchen/Sephpa#42 (comment)
$xmlString = $file->generateOutput(['zipToOneFile' => false])[0]['data'];
If you call generateOutput without this options array, it will create zip files, see: https://github.com/AbcAeffchen/Sephpa/blob/1bd00f72fe9ffb937c49af9e0045e66f98074212/src/Sephpa.php#L283
Merge pull request #419 from fbett/fix-issue-418
65fbb26
fix(Direct Debit Sample): #418 Invalid protected method called
No branches or pull requests
The Code
In the
directDebit_Sephpa
sample file does not work due to the fact thatgenerateXml()
is a protected method:phpFinTS/Samples/directDebit_Sephpa.php
Line 45 in 63256e2
https://github.com/AbcAeffchen/Sephpa/blob/1bd00f72fe9ffb937c49af9e0045e66f98074212/src/Sephpa.php#L152
I opened an issue in the other lib also:
AbcAeffchen/Sephpa#42
Maybe the sample should be updated or at least commented. I solved it by extending the other lib's file so I can expose the xml myself.
The text was updated successfully, but these errors were encountered: