-
-
Notifications
You must be signed in to change notification settings - Fork 34
Basic Usage
Alex Schickedanz edited this page Jul 2, 2020
·
1 revision
Sephpa basically works like this:
- 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. - Create Payment-Collections
You can ask a Sephpa object to create a new collection for you. A collection holds a list of single payments. - Add payments to a collection.
- 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.
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.