hakito / php-stuzza-eps-banktransfer
Stuzza e-payment standard implementation for PHP
Installs: 66 509
Dependents: 2
Suggesters: 0
Security: 0
Stars: 15
Watchers: 3
Forks: 7
Open Issues: 0
Requires
- php: >=7.2.0
- rmccue/requests: ^2.0
Requires (Dev)
- php: >=7.2
- phpunit/phpunit: 10.*
README
PHP-Stuzza-EPS-BankTransfer
PHP implementation of the Austrian e-payment standard "eps" (Version 2.6), specified by Stuzza. See http://www.stuzza.at/de/component/k2/item/23-eps-ueberweisung.html or http://www.eps-ueberweisung.at/
Installation
Create a copy of these folders in your project:
- src
- tests
- XSD
Or use composer:
composer require hakito/php-stuzza-eps-banktransfer
Usage
Look at the following files in the sample folder:
- eps_start.php
- eps_confirm.php
To run the tests, go to the parent folder of tests and execute:
phpunit
Migration from v1.x
In v2.0 the SoCommunicator uses a common base URL for ApiCalls. This is set per default to SoCommunicator::LIVE_MODE_URL in the constructor.
use at\externet\eps_bank_transfer\SoCommunicator; $soCommunicator = new SoCommunicator(); // $soCommunicator->BaseUrl == SoCommunicator::LIVE_MODE_URL; $soCommunicator = new SoCommunicator(true); // $soCommunicator->BaseUrl == SoCommunicator::TEST_MODE_URL; // You can also set BaseUrl to a custom endpoint.
Because of this change the URL parameter has been removed for the functions:
- TryGetBanksArray
- GetBanksArray
- GetBanks
Remarks
The current implementation does not support XML certificates and signing. Make sure that the confirmation url is not easily guessable. Think about adding unique security parameters to the confirmation url for every transaction.