-
-
Notifications
You must be signed in to change notification settings - Fork 32
Direct Debit Example
sargac edited this page May 17, 2020
·
3 revisions
require_once __DIR__ . '/../../SepaUtilities-master/src/SepaUtilities.php';
require_once __DIR__ . '/../src/autoloader.php';
require_once __DIR__ . '/../src/Sephpa.php';
$directDebitFile = new AbcAeffchen\Sephpa\SephpaDirectDebit(
'Crédit Société S.A.',
'2004180913-325562255',
AbcAeffchen\Sephpa\SephpaDirectDebit::SEPA_PAIN_008_001_02
);
$directDebitCollection = $directDebitFile->addCollection([
'pmtInfId' => 'B325562255',
'lclInstrm' => AbcAeffchen\SepaUtilities\SepaUtilities::LOCAL_INSTRUMENT_CORE_DIRECT_DEBIT,
'seqTp' => AbcAeffchen\SepaUtilities\SepaUtilities::SEQUENCE_TYPE_RECURRING,
'cdtr' => 'Crédit Société S.A., 83 cours Roosevelt, 13009 Marseille',
'iban' => 'FR2030003000502379126724C76',
'bic' => 'ACCLFRP1XXX',
'ci' => 'FR53ZZZ05112443226'
]);
$directDebitCollection->addPayment([
'pmtId' => '511244325',
'instdAmt' => '15.0000',
'mndtId' => 'M512346588NL',
'dtOfSgntr' => '2016-06-09',
'bic' => 'NOTAVAIL',
'dbtr' => 'Danique Aaldenberg, Boerhaavelaan 7, 2500 DL Den Haag',
'iban' => 'NL24ABNA8214484995'
]);
$directDebitFile->store(__DIR__);