Download the PHP package zfr/zfr-paymill without Composer

On this page you can find all versions of the php package zfr/zfr-paymill. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package zfr-paymill

ZfrPaymill

Latest Stable Version

ZfrPaymill is a modern PHP library based on Guzzle for Paymill payment system.

Note : this library does not contain tests, mainly because I'm not sure about how to write tests for an API wrapper. Don't hesitate to help on this ;-).

Dependencies

Installation

Installation of ZfrPaymill is only officially supported using Composer:

Tutorial

First, you need to instantiate the Paymill client, passing your private API key (you can find it in your Paymill settings):

The currently supported version of the API is version 2.0.

How to use it?

Using the client is easy. For instance, here is how you'd create a new offer:

The parameters have a direct one-to-one mapping with the official documentation (for any reference, you can also check the ZfrPaymill\Client\ServiceDescription\Paymill-2.0.php file). To know what the responses look like, please refer to the official API reference.

For most get methods, you must pass an id parameter, as follows:

$details = $client->getClient(array('id' => 'my-client-id'));

Exceptions

ZfrPaymill tries its best to throw useful exceptions. Two kinds of exceptions can occur:

Here are all the exceptions:

Usage:

For transaction/refund/preauthorization methods, Paymill may return status code 200 even if an error occured. Paymill stores this error in a response_code property in the reponse. However, ZfrPaymill will automatically checks if this is set, and throw a TransactionErrorException, so that you don't need to check for this yourself, but only catch the exception.

Advanced usage

Listeners

Because ZfrPaymill is based on Guzzle, you can take advantage of all its feature. For instance, you can add listeners to various events by calling the addSubscriber method on the client.

Complete reference

Here is a complete list of all methods, with a link to the official documentation for parameters names:

PAYMENT RELATED METHODS:

PREAUTHORIZATION RELATED METHODS:

TRANSACTION RELATED METHODS:

REFUND RELATED METHODS:

CLIENT RELATED METHODS:

OFFER RELATED METHODS:

SUBSCRIPTION RELATED METHODS:

WEBHOOK RELATED METHODS:


All versions of zfr-paymill with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
guzzle/guzzle Version >=3.5,<=3.8
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package zfr/zfr-paymill contains the following files

Loading the files please wait ....