-
-
Notifications
You must be signed in to change notification settings - Fork 32
Credit Transfer Example
sargac edited this page May 17, 2020
·
1 revision
require_once __DIR__ . '/../../SepaUtilities-master/src/SepaUtilities.php';
require_once __DIR__ . '/../src/autoloader.php';
require_once __DIR__ . '/../src/Sephpa.php';
$creditTransferFile = new AbcAeffchen\Sephpa\SephpaCreditTransfer(
'Crédit Société S.A.',
'2004180913-325562255',
AbcAeffchen\Sephpa\SephpaCreditTransfer::SEPA_PAIN_001_001_03
);
$creditTransferCollection = $creditTransferFile->addCollection([
'pmtInfId' => 'B325562255',
'dbtr' => 'Crédit Société S.A., 83 cours Roosevelt, 13009 Marseille',
'iban' => 'FR2030003000502379126724C76'
]);
$creditTransferCollection->addPayment([
'pmtId' => '664995832',
'instdAmt' => '12.0000',
'cdtr' => 'Emma Neumann, Leopoldstraße 51, 13127 Berlin Buchholz',
'iban' => 'DE58500105174167164256'
]);
$creditTransferFile->store(__DIR__);