1. Go to this page and download the library: Download hairacless/sephpa library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hairacless / sephpa example snippets
$creditTransferFile = new SephpaCreditTransfer('Initiator Name',
'MessageID-1234',
SephpaCreditTransfer::SEPA_PAIN_001_002_03);
$creditTransferCollection = $creditTransferFile->addCollection([
// t collection
'dbtr' => 'Name of Debtor', // (max 70 characters)
'iban' => 'DE21500500001234567897',// IBAN of the Debtor
'bic' => 'SPUEDE2UXXX', // BIC of the Debtor
// optional
'ccy' => 'EUR', // Currency. Default is 'EUR'
'btchBookg' => 'true', // BatchBooking, only 'true' or 'false'
//'ctgyPurp' => , // Category Purpose. Do not use this if you do not know how. For further information read the SEPA documentation
'reqdExctnDt' => '2013-11-25', // Requested Execution Date: YYYY-MM-DD
'ultmtDebtr' => 'Ultimate Debtor Name' // just an information, this do not affect the payment (max 70 characters)
]);
$creditTransferCollection->addPayment([
// // ID of the payment (EndToEndId)
'instdAmt' => 0.42, // amount,
'iban' => 'DE21500500009876543210',// IBAN of the Creditor
'bic' => 'SPUEDE2UXXX', // BIC of the Creditor (only know how. For further information read the SEPA documentation
'rmtInf' => 'Remittance Information' // unstructured information about the remittance (max 140 characters)
]);
$directDebitFile = new SephpaDirectDebit('Initiator Name',
'MessageID-1235',
SephpaDirectDebit::SEPA_PAIN_008_002_02);
$directDebitCollection = $directDebitFile->addCollection([
// // (max 70 characters)
'iban' => 'DE87200500001234567890',// IBAN of the Creditor
'bic' => 'BELADEBEXXX', // BIC of the Creditor
'ci' => 'DE98ZZZ09999999999', // Creditor-Identifier
// optional
'ccy' => 'EUR', // Currency. Default is 'EUR'
'btchBookg' => 'true', // BatchBooking, only 'true' or 'false'
//'ctgyPurp' => , // Do not use this if you not know how. For further information read the SEPA documentation
'ultmtCdtr' => 'Ultimate Creditor Name',// just an information, this do not affect the payment (max 70 characters)
'reqdColltnDt' => '2013-11-25' // Requested Collection Date: YYYY-MM-DD
]);
$directDebitCollection->addPayment([
// t least one must be used
'orgnlMndtId' => 'Original-Mandat-ID',
'orgnlCdtrSchmeId_nm' => 'Creditor-Identifier Name',
'orgnlCdtrSchmeId_id' => 'DE98AAA09999999999',
'orgnlDbtrAcct_iban' => 'DE87200500001234567890',// Original Debtor Account
'orgnlDbtrAgt' => 'SMNDA' // only 'SMNDA' allowed if used
]);
$creditTransferFile->store();
$creditTransferFile->download();
vendor/Sephpa/src/autoloader.php
vendor/SepaUtilities/src/SepaUtilities.php
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.