-
-
Notifications
You must be signed in to change notification settings - Fork 34
Direct Debit
sargac edited this page Jul 9, 2020
·
14 revisions
$directDebitFile = new SephpaDirectDebit(
'<Initiating Party / Name>',
'<Message Identification>',
<ISO 20022 XML Message Version>
);
Parameter (optional) | Type [Default] | Description #Note |
---|---|---|
initgPty | string | Initiating Party / Name |
msgId | string | Message Identification |
version | int | ISO 20022 XML Message Version #1 |
orgId | array [] | Organization Identifier #2 |
initgPtyId | string [null] | Initiating Party ID #3 |
checkAndSanitize | bool [true] | Input Validation #4 |
Notes
- Only use the
SephpaDirectDebit::SEPA_PAIN_008_*
constants. -
It is recommended not to use this. If used, the array must have a at least one of the keys:
-
id
(an Identifier of the organization) -
bob
(A BIC or BEI that identifies the organization).
-
- Only use if you know for what it is for.
- You can turn this off if you are confident that your inputs are well formed e.g. if you sanitized them before storing them in your database.
$directDebitCollection = $directDebitFile->addCollection([
'pmtInfId' => '<Payment Information Identification>',
'lclInstrm' => <Local Instrument>,
'seqTp' => <Sequence Type>,
'cdtr' => '<Creditor Information>',
'iban' => '<IBAN>',
'bic' => '<BIC>',
'ci' => '<Creditor Identifier>'
]);
The function addCollection
takes an array of key-value pairs.
Parameter (optional) | Type [Default] | Description #Note |
---|---|---|
pmtInfId | string | Payment Information Identification |
lclInstrm | int | Local Instrument |
seqTp | int | Sequence Type |
cdtr | string | Creditor Information |
iban | string | IBAN |
bic | string | BIC #1 |
ci | string | Creditor Identifier |
ccy | string [EUR] | Currency |
btchBookg | string | Batch Booking |
ctgyPurp | string | Category Purpose |
ultmtCdtr | string | Ultimate Creditor |
reqdColltnDt | string | Requested Collection Date #2 |
Notes
- The BIC is not required for version
pain.008.001.02.austrian.003
. - If requested date is omitted, current processing date is used.
$directDebitCollection->addPayment([
'pmtId' => '<Payment Identification>',
'instdAmt' => '<Instructed Amount>',
'mndtId' => '<Mandate Identification>',
'dtOfSgntr' => '<Date Of Signature>',
'bic' => '<BIC>',
'dbtr' => '<Debtor Information>',
'iban' => '<IBAN>'
]);
The function addPayment
takes an array of key-value pairs.
Parameter (optional) | Type [Default] | Description #Note |
---|---|---|
pmtId | string | Payment Identification |
instdAmt | float / string | Instructed Amount #1 |
mndtId | string | Mandate Identification |
dtOfSgntr | string | Date Of Signature |
bic | string | BIC #2 |
dbtr | string | Debtor Information |
iban | string | IBAN |
amdmntInd | string | Amendment Indicator |
orgnlMndtId | string | Original Mandate Identification |
orgnlCdtrSchmeId_nm | string | Original Creditor Scheme Identification / Name |
orgnlCdtrSchmeId_id | string | Original Creditor Scheme Identification / Identification |
orgnlDbtrAcct_iban | string | Original Debtor Account / IBAN |
orgnlDbtrAgt | string | Original Debtor Agent |
elctrncSgntr | string | Electronic Signature |
ultmtDbtr | string | Ultimate Debtor |
purp | string | Purpose |
rmtInf | string | Remittance Information |
Notes
- A string must be able to be interpreted as a float. One is allowed to use both
,
and.
as decimal point. - The BIC is not required for version
pain.008.001.02.austrian.003
.