Download the PHP package z38/swiss-payment without Composer
On this page you can find all versions of the php package z38/swiss-payment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download z38/swiss-payment
More information about z38/swiss-payment
Files in z38/swiss-payment
Package swiss-payment
Short Description PHP library to generate Swiss pain.001 messages (complies with ISO-20022)
License MIT
Homepage https://github.com/z38/swiss-payment
Informations about the package swiss-payment
SwissPayment
SwissPayment is a PHP library to generate Swiss pain.001 XML messages (complies with ISO-20022).
Installation
Just install Composer and run composer require z38/swiss-payment
in your project directory.
Usage
To get a basic understanding on how the messages are structured, take a look the resources mentioned below. The following example shows how to create a message containing two transactions:
Tip: Take a look at Z38\SwissPayment\Tests\Message\CustomerCreditTransferTest
to see all payment types in action.
Caveats
- Not all business rules and recommendations are enforced, consult the documentation and validate the resulting transaction file in cooperation with your bank.
- At the moment cheque transfers are not supported (for details consult chapter 2.2 of the Implementation Guidelines)
- The whole project is still under development and therefore BC breaks can occur. Please contact me if you need a stable code base.
Contributing
If you want to get your hands dirty, great! Here's a couple of steps/guidelines:
- Fork this repository
- Add your changes & tests for those changes (in
tests/
). - Remember to stick to the existing code style as best as possible. When in doubt, follow
PSR-2
. - Send me a pull request!
If you don't want to go through all this, but still found something wrong or missing, please let me know, and/or open a new issue report so that I or others may take care of it.
Further Resources
- www.iso-payments.ch General website about the Swiss recommendations regarding ISO 20022
- Swiss Business Rules for Customer-Bank Messages
- Swiss Implementation Guidelines for pain.001 and pain.002 Messages
- SIX Validation Portal
- PostFinance Validation Portal