Skip to content

wesselstam/SEPA-XML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SEPA XML class

About

SepaXML is a class that converts your direct debit information to PAIN.008.001.02 XML files. The original class is made by BureauPartners

Installation

The recommended installation way is through Composer.

$ composer require wesselstam/sepa-xml dev-master

Example

use WesselStam\SepaXML\SepaXML;

// create instance
$oSEPA = new SepaXML();

// Set your collection destination information
$oSEPA->setCollectionDestination(
    "Your company name, 
    "Your IBAN", 
    "Your BIC", 
    "Your Creditor ID"
);

// Set the direct debit date
$oSEPA->setDate("2017-07-11");

// Add one or more collections to the 
// addCollection($sName, $sIBAN, $sBIC, $iAmount, $sDescription, $sSignedDate, $sMandateID)
$oSEPA->addCollection(
    "Customer name",
    "Customer IBAN",
    "Customer BIC",
    "Amount",
    "Description",
    "Mandate date",
    "Mandate ID"
);


// output
echo $oSEPA->getXML();

Source

https://github.com/BureauPartners/SEPA-Incasso

About

SEPA direct debit XML class

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages