PHPackages                             nowo-tech/sepa-payment-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. nowo-tech/sepa-payment-bundle

ActiveSymfony-bundle[Payment Processing](/categories/payments)

nowo-tech/sepa-payment-bundle
=============================

Symfony bundle for SEPA payment management: Generate SEPA Credit Transfer (pain.001) and Direct Debit (pain.008) XML files, IBAN/BIC validation, mandate management, ISO 20022 compliance, and banking utilities

v1.2.17(2mo ago)01.3k↓46.9%[1 PRs](https://github.com/nowo-tech/SepaPaymentBundle/pulls)MITPHPPHP &gt;=8.1 &lt;8.6CI passing

Since Dec 16Pushed 1mo agoCompare

[ Source](https://github.com/nowo-tech/SepaPaymentBundle)[ Packagist](https://packagist.org/packages/nowo-tech/sepa-payment-bundle)[ Docs](https://github.com/nowo-tech/sepa-payment-bundle)[ GitHub Sponsors](https://github.com/HecFranco)[ RSS](/packages/nowo-tech-sepa-payment-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (27)Versions (32)Used By (0)

SEPA Payment Bundle
===================

[](#sepa-payment-bundle)

[![CI](https://github.com/nowo-tech/SepaPaymentBundle/actions/workflows/ci.yml/badge.svg)](https://github.com/nowo-tech/SepaPaymentBundle/actions/workflows/ci.yml) [![Packagist Version](https://camo.githubusercontent.com/b0f00f264a95b87cfec85b953e3772aec720e11ca379762558391ed2b6c8a4b0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6f776f2d746563682f736570612d7061796d656e742d62756e646c652e7376673f7374796c653d666c6174)](https://packagist.org/packages/nowo-tech/sepa-payment-bundle) [![Packagist Downloads](https://camo.githubusercontent.com/4f3704faef07d8c072a65b1a17b0146126824c6a3898c9318121ba91784862a0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6f776f2d746563682f736570612d7061796d656e742d62756e646c652e737667)](https://packagist.org/packages/nowo-tech/sepa-payment-bundle) [![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE) [![PHP](https://camo.githubusercontent.com/8e58b490725ac49cc8e463c473173681b324c9d92d7854275a785db013ca3de7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312532422d3737374242343f6c6f676f3d706870)](https://php.net) [![Symfony](https://camo.githubusercontent.com/8fe7de83f11ab7ca74742794be56f9291632c8351a9ae5baea0bc1e9c4eb5a35/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d3625323025374325323037253230253743253230382d3030303030303f6c6f676f3d73796d666f6e79)](https://symfony.com) [![GitHub stars](https://camo.githubusercontent.com/91f836a4908f77781edf36f4b7f5438a2e616345765cac448c5a6e5ff7644264/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6e6f776f2d746563682f736570612d7061796d656e742d62756e646c652e7376673f7374796c653d736f6369616c266c6162656c3d53746172)](https://github.com/nowo-tech/SepaPaymentBundle) [![Coverage](https://camo.githubusercontent.com/cd0704b56f1d56def350b6d0164316307bb2f47834225fd85443b6fb0059bc73/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f7665726167652d3130302532352d627269676874677265656e)](#tests-and-coverage)

> ⭐ **Found this useful?** Give it a star on GitHub! It helps us maintain and improve the project.

**Symfony bundle for SEPA (Single Euro Payments Area) payment management** - Generate SEPA Credit Transfer (pain.001.001.03) and Direct Debit (pain.008.001.02) XML files compliant with ISO 20022 standards. Includes comprehensive IBAN/BIC validation, mandate management, XSD schema validation, and banking utilities for European payments.

Features
--------

[](#features)

- ✅ **IBAN Validation**: Complete IBAN validation according to ISO 13616 standard
- ✅ **IBAN Utilities**: Format, normalize, extract country code, check digits, and BBAN
- ✅ **CCC to IBAN Conversion**: Convert Spanish CCC (Código Cuenta Cliente) to IBAN format
- ✅ **BIC Validation**: Validate BIC (Business Identifier Code) format
- ✅ **Automatic BIC Lookup**: Automatically look up BIC codes from IBANs (supports 8 countries)
- ✅ **Credit Card Validation**: Validate credit card numbers using Luhn algorithm and detect card types (Visa, Mastercard, Amex, Discover, etc.)
- ✅ **Identifier Generation**: Generate unique identifiers for messages, payments, and transactions
- ✅ **SEPA XML Parser**: Parse and validate SEPA XML files (Credit Transfer and Direct Debit)
- ✅ **XSD Schema Validation**: Validate XML files against official SEPA XSD schemas (ISO 20022)
- ✅ **SEPA String Sanitization**: Validate and sanitize strings according to SEPA character rules
- ✅ **SEPA Country Validation**: Validate SEPA member countries
- ✅ **SEPA Business Rules Validation**: Validate SEPA limits and business rules (amounts, dates, currencies, sequence types)
- ✅ **Export to Other Formats**: Export SEPA payment data to JSON and CSV formats, import from JSON
- ✅ **Symfony Events**: Event system for extensibility (before/after generation events)
- ✅ **Structured Logging**: Comprehensive logging for SEPA operations with PSR-3 integration
- ✅ **SEPA Mandates**: Manage SEPA Direct Debit mandates with full support
- ✅ **Credit Transfer**: Generate SEPA Credit Transfer XML files (pain.001.001.03 format) using Digitick\\Sepa library
- ✅ **Direct Debit**: Generate SEPA Direct Debit XML files (pain.008.001.02 format) using Digitick\\Sepa library
- ✅ **Array-based API**: Generate both types of payment files from simple array format
- ✅ **Object-based API**: Generate payment files using typed objects for better type safety
- ✅ **Multiple Transactions**: Support for batch payments in a single file
- ✅ **Full Validation**: Automatic validation of IBANs before XML generation
- ✅ **Type Safety**: Full type hints and strict types throughout
- ✅ **Console Commands**: CLI tools for IBAN validation, CCC conversion, and credit card validation

Installation
------------

[](#installation)

```
composer require nowo-tech/sepa-payment-bundle
```

Then, register the bundle in your `config/bundles.php`:

```
