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

Implementation for optional SEPA credit transfer purpose codes #187

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

linushstge
Copy link
Contributor

@linushstge linushstge commented Jan 25, 2024

This pull requests implement the SEPA purpose codes to flag transactions for specific payment types, like salary payments.

Full list of SEPA codes:
https://wiki.windata.de/index.php?title=Purpose-SEPA-Codes

Additional optional parameter $purposeCode added to the credit transfer builder.
Fully backwards compatible


Additional changes:

  • Added PHP 8.3 to readme (tested in production)
  • $endToEndId in CustomerInstantCreditTransferBuilder is null on default (same behaviour as CustomerCreditTransferBuilder)

Generated SEPA XML Sample for SALA Code:

<CdtTrfTxInf>
    <PmtId>
        <EndToEndId>**********</EndToEndId>
    </PmtId>
    <Amt>
        <InstdAmt Ccy="EUR">100.00</InstdAmt>
    </Amt>
    <Cdtr>
        <Nm>Payment Receiver</Nm>
    </Cdtr>
    <CdtrAcct>
        <Id>
            <IBAN>DE****************</IBAN>
        </Id>
    </CdtrAcct>
    <Purp>
        <Cd>SALA</Cd>
    </Purp>
    <RmtInf>
        <Ustrd>Purpose Description</Ustrd>
    </RmtInf>
</CdtTrfTxInf>

@guillaume-sainthillier
Copy link
Contributor

LGTM @andrew-svirin

@andrew-svirin andrew-svirin merged commit 8caca27 into ebics-api:2.x Jan 25, 2024
3 checks passed
andrew-svirin added a commit that referenced this pull request Oct 25, 2024
Implementation for optional SEPA credit transfer purpose codes
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

Successfully merging this pull request may close these issues.

3 participants