Skip to content

hakito/PHP-Stuzza-EPS-BankTransfer

Repository files navigation

Build Status Coverage Status Latest Stable Version Total Downloads Latest Unstable Version License

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.