Download the PHP package clearhaus/sdk without Composer

On this page you can find all versions of the php package clearhaus/sdk. 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 sdk

Clearhaus PHP SDK

SDK for Clearhaus API written in PHP and decoupled from any HTTP messaging client using HTTPlug.

You can sign up for a Clearhaus account at https://www.clearhaus.com/.

Build Status Latest Stable Version Total Downloads GitHub license

Requirements

Installation

Clearhaus SDK only officially supports installation through Composer. For Composer documentation, please refer to getcomposer.org.

You can install the module from command line:

Documentation

Please see http://docs.gateway.clearhaus.com for up-to-date documentation.

Authentication

For authentication, you must provide an API key that you will find in your account:

Signed requests

The signature is an RSA signature of the HTTP body; it is represented in Hex. The signee must be identified by the signing API-key.

Authorizations

To reserve money on a cardholder’s bank account you make a new authorization resource.

You can also use a card previously tokenized.

Captures

To transfer money from a cardholder’s bank account to your merchant bank account you make a new capture resource. You can make multiple captures for an authorization transaction.

You can withdraw a partial amount by providing an amount parameter:

Refunds

To refund money to a cardholder’s bank account you make a new refund resource. You can make multiple refunds for an authorization transaction.

You can refund a partial amount by providing an amount parameter:

Voids

To release reserved money on a cardholder’s bank account you make a new void resource. A reservation normally last for 7 days depending on issuing bank and is then automatically released.

Credits

To payout (e.g. winnings and not refunds) money to a cardholder’s bank account you make a new credit resource. You must have a card resource to make a credit transaction.

Cards

A card resource (token) corresponds to a payment card and can be used to make a credit or authorization transaction without providing sensitive card data. A card resource must be used to make subsequent recurring authorization transactions.

Accounts

The account resource holds basic merchant account information.

3-D Secure

3-D Secure is a protocol designed to improve security for online transactions. Before you continue please read more about this protocol at 3Dsecure.io.

To perform a 3-D Secure transaction you make an ordinary authorization including a pares value:

PSR-11 factory

You can use the predefined factory Clearhaus\Container\ClientFactory to instantiate a Clearhaus client:

The client configuration must look like below:

Testing

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
php-http/client-common Version ^1.3
php-http/discovery Version ^1.0
php-http/httplug Version ^1.0
php-http/message-factory Version ^1.0.2
phpseclib/phpseclib Version ^2.0
psr/container Version ^1.0
psr/http-message Version ^1.0
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 clearhaus/sdk contains the following files

Loading the files please wait ....