Skip to content
SOFORT API wrapper for PHP
PHP
Branch: master
Clone or download

Latest commit

Valvatorez Merge pull request #34 from sofort/set-project-id-for-transaction-req…
…uests

Set project id for transaction requests
Latest commit 0419b45 May 28, 2018

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
src Set project id for transaction requests May 24, 2018
tests
.gitignore initial commit Jun 22, 2015
.travis.yml php7 compability Jan 9, 2017
CHANGELOG.md fix typo: date Sep 16, 2016
LICENSE.md
README.md change legal form Jun 25, 2015
composer.json * Fix return types in php docs Jun 30, 2015
phpunit.xml.dist initial commit Jun 22, 2015

README.md

SofortLib-PHP @ SOFORT GmbH

Build Status

This documentation explains the SofortLib PHP, its parts, how to set it up and how to test it.

DESCRIPTION

Integrate the SofortLib PHP into your project to communicate via PHP with the SOFORT API.

Find out more about the SOFORT API/SDK here: https://www.sofort.com/integrationCenter-eng-DE/integration/API-SDK/

SofortLib PHP Supports the following SOFORT Products:

  1. SOFORT Überweisung (SOFORT Banking/Payment)
  2. SOFORT Paycode
  3. SOFORT Billcode
  4. Refund
  5. iDEAL

Install

Install the sofort/sofortlib-php package using composer:

{
    "require": {
        "sofort/sofortlib-php": "3.*"
    }
}

SofortLib Package

The SofortLib PHP package contains the following:

  • the /src directory with the class-files
  • an /examples folder, with examples of usage
  • the folder /test with the unittests (for PHP Unit).

Functionality

  • initiate a SOFORT Überweisung
  • create/initiate a SOFORT Überweisung Paycode
  • create/initiate a SOFORT Überweisung Billcode
  • getting the details for one or more transactions
  • getting the details for a period and/or status
  • convert received XML to a PHP Object
  • marking refunds
  • getting the current iDEAL Bank list
  • generate a forward URL for the iDEAL payment data
  • creating checksum/hash for iDEAL Payment data
  • creating checksum/hash for iDEAL Notifications

Usage

Find examples of usage for the different modules in the /examples directory.

Testing

Run the tests

./vendor/bin/phpunit
You can’t perform that action at this time.