Skip to content
Alex Schickedanz edited this page Jul 2, 2020 · 1 revision

Single Files

Sephpa basically works like this:

  1. Create an Sephpa object.
    It basically represents a SEPA file and defines the version and some information used at file level. It also holds all the payment collections.
  2. Create Payment-Collections
    You can ask a Sephpa object to create a new collection for you. A collection holds a list of single payments.
  3. Add payments to a collection.
  4. Export the Sephpa into a SEPA file.

This is similar for both Credit Transfer and Direct Debit. Both versions only differ in the parameters they need to work. For details have a look at the dedicated Wiki pages.

Multiple Files

There are cases where you need to generate multiple SEPA files. To make this a little bit easier there is the SephpaMultiFile class. This class can generate Credit Transfer and Direct Debit object. Each object just works the same way as in the single file case. At the end you just ask the multi file object to generate a zip file of all files. For more details have a look at the dedicated SephpaMultiFile page.

Clone this wiki locally