heidelpay/php-payment-api

New client library for heidelpay payments replacing heidelpay/php-api.

v1.4.0 2018-02-05 13:50 UTC

README

Latest Version on Packagist Build Status Codacy Badge Codacy Badge PHP 5.6 PHP 7.0 PHP 7.1 PHP 7.1 Logo

Welcome to the heidelpay payment api for php

This is the php payment api for heidelpay. The library will help you to easily integrate heidelpay into your application.

Currently supported payment methods:

  • credit card
  • debit card
  • prepayment
  • Sofort
  • PayPal
  • direct debit
  • iDeal
  • Giropay
  • Przelewy24
  • PostFinance Card
  • PostFinance EFinance
  • EPS
  • invoice
  • invoice secured b2c
  • direct debit secured b2c
  • Santander invoice
  • easyCredit
  • Payolution invoice

SYSTEM REQUIREMENTS

php-payment-api requires PHP 5.6 or higher; we recommend using the latest stable PHP version whenever possible.

SECURITY ADVICE

If you want to store the output of this library e.g. into a database, please make sure that your application takes care of sql injection, cross-site-scripting (xss) and so on. There is currently no build-in protection.

LICENSE

You can find a copy of this license in LICENSE.txt.

Documentation

Please visit http://dev.heidelpay.com/heidelpay-php-api/ for the developer documentation.

Unit- and Integration tests

This library comes with a set of unit and integration tests. Please do not run the integration tests on each build.

Run prior to tests: codecept build

Run unit tests: codecept run unit

Run unit tests with code coverage report: codecept run unit --coverage --coverage-html

Run integration tests: codecept run integration

Run integration tests with debug output: codecept run integration --debug

For coverage analysis results see: ./tests/_output/coverage/index.html

Examples

Integration examples can be found in the example folder. Just open the

_enableExamples.php and change

define('HEIDELPAY_PHP_PAYMENT_API_EXAMPLES', FALSE);

to

define('HEIDELPAY_PHP_PAYMENT_API_EXAMPLES', TRUE);

Please make sure to switch it off again, after you launch your application.