Skip to content
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

SEPA direct debit #397

Open
timrasche opened this issue Nov 23, 2022 · 6 comments
Open

SEPA direct debit #397

timrasche opened this issue Nov 23, 2022 · 6 comments

Comments

@timrasche
Copy link

Is it possible to force the paramater "einzelbuchungGewuenscht" on Action "SendSEPADirectDebit" to reliable value of "true"?

@Philipp91
Copy link
Contributor

Not today. In fact, it's either null by default or false in this special case, which looks a little suspicious to me.

I wonder if instead of

if (!$useSingleDirectDebit) {
    if ($hidxes->getParameter()->einzelbuchungErlaubt) {
        $hkdxe->einzelbuchungGewuenscht = false;
    }
}

we perhaps want

if ($hidxes->getParameter()->einzelbuchungErlaubt) {
    $hkdxe->einzelbuchungGewuenscht = $useSingleDirectDebit;
}

@timrasche
Copy link
Author

@Philipp91 Thanks for review, and i agree. Think need exactly this.

@Philipp91
Copy link
Contributor

You can patch it in and try it out, send a PR if it worked.

@ampaze
Copy link
Contributor

ampaze commented Dec 1, 2022

Just a heads up, $useSingleDirectDebit is only the type of request that is send to the bank (HIDME or HKDME). It has nothing to do with einzelbuchungGewuenscht except that einzelbuchungGewuenscht is only available for HKDME.

@timrasche
Copy link
Author

hm ok, can we bring up this topic? I cant see any line of code in the examples or other parts to use this value "einzelbuchungGewuenscht" in combination with multiple sepa direct debits or transfers. Its mandatory on our software to list account statements as single lines and not in a collective way.

@ampaze
Copy link
Contributor

ampaze commented Apr 19, 2024

Just setting it to true would potentially change functionality of software using this lib, including ours.

Options are:

  • extend SendSEPADirectDebit and overwrite createRequest and change einzelbuchungGewuenscht as needed.
  • we could take a look at the PAIN messages used and see if the information could be derived from the XML

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants