library sepa-payments
A package to create SEPA 001.001.03 payment files
tigron/sepa-payments
A package to create SEPA 001.001.03 payment files
- Monday, December 5, 2016
- by tigron
- Repository
- 3 Watchers
- 0 Stars
- 45 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 6 Versions
- 0 % Grown
sepa-payments
Overview
This library will create a SEPA pain.001.001.03 Credit Transfer XML file. The
XML file is validated with the ING Format Validation Tool:
url: https://ing-fvt.liaison.com/welcome.do
login: ING10
password: Format10, (*1)
todo
- Validation for input
- Better reporting
- XML formatting (tidy?)
- Validation agains XSD
Example
$organization = new \Tigron\Sepa\Organization();
$organization->name = 'Tigron';
/**
* Set the identification
*
* Possible types: bic, bei or kbo-bce
*/
$organization->set_identification('kbo-bce', '0888764123');
$credit = new \Tigron\Sepa\File\Credit();
$credit->messageIdentification = 1;
$credit->initiatingParty = $organization;
$debtor = new \Tigron\Sepa\Debtor();
$debtor->name = 'Tigron';
$debtor->country = 'BE';
$debtor->zipcode = '1930';
$debtor->city = 'Zaventem';
$debtor->street = 'Excelsiorlaan';
$debtor->housenumber = '17';
// Create a payment
$payment = new \Tigron\Sepa\Payment();
$payment->paymentInformationIdentification = 'payment_1';
$payment->requestedExecutionDate = new DateTime('2016-09-15');
$payment->debtorAccount = 'BE12123412341234';
$payment->debtorAgent = 'BICAZE';
$payment->debtor = $debtor;
$creditor = new \Tigron\Sepa\Creditor();
$creditor->name = 'My Supplier';
$creditor->country = 'BE';
$creditor->zipcode = '1930';
$creditor->city = 'Zaventem';
$creditor->street = 'Excelsiorlaan';
$creditor->housenumber = '17';
// Create a transaction
$transaction = new \Tigron\Sepa\Transaction();
$transaction->paymentIdentification = 'payment_1';
$transaction->amount = 500;
$transaction->creditorAgent = 'BICEZA';
$transaction->creditorAccount = 'BE12123412341234';
$transaction->creditor = $creditor;
$transaction->structured_message = '123123412345';
$payment->transactions[] = $transaction;
$transaction = new \Tigron\Sepa\Transaction();
$transaction->paymentIdentification = 'payment_1';
$transaction->amount = 500;
$transaction->creditorAgent = 'BICEZA';
$transaction->creditorAccount = 'BE12123412341234';
$transaction->creditor = $creditor;
$transaction->unstructured_message = 'Invoice 123';
$payment->transactions[] = $transaction;
$credit->payments = [ $payment ];
$xml = $credit->render();
dev-master
9999999-dev
A package to create SEPA 001.001.03 payment files
Sources
Download
MIT
The Requires
by
Tigron BVBA
0.0.5
0.0.5.0
A package to create SEPA 001.001.03 payment files
Sources
Download
MIT
The Requires
by
Tigron BVBA
0.0.3
0.0.3.0
A package to create SEPA 001.001.03 payment files
Sources
Download
MIT
The Requires
by
Tigron BVBA
0.0.4
0.0.4.0
A package to create SEPA 001.001.03 payment files
Sources
Download
MIT
The Requires
by
Tigron BVBA
0.0.2
0.0.2.0
A package to create SEPA 001.001.03 payment files
Sources
Download
MIT
The Requires
by
Tigron BVBA
0.0.1
0.0.1.0
A package to create SEPA 001.001.03 payment files
Sources
Download
MIT
The Requires
by
Tigron BVBA