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.
Download clearhaus/sdk
More information about clearhaus/sdk
Files in clearhaus/sdk
Package sdk
Short Description Clearhaus PHP SDK
License MIT
Homepage https://github.com/RiskioFr/clearhaus-sdk-php
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/.
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-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