Download the PHP package quickpay/quickpay-php-client without Composer
On this page you can find all versions of the php package quickpay/quickpay-php-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download quickpay/quickpay-php-client
More information about quickpay/quickpay-php-client
Files in quickpay/quickpay-php-client
Package quickpay-php-client
Short Description PHP-SDK to communicate with the payment provider QuickPay
License MIT
Homepage https://github.com/QuickPay/quickpay-php-client
Informations about the package quickpay-php-client
quickpay-php-client
quickpay-php-client
is a official client for QuickPay API. The QuickPay API enables you to accept payments in a secure and reliable manner. This package currently support QuickPay v10
api.
Installation
Composer
Simply add a dependency on quickpay/quickpay-php-client to your project's composer.json file if you use Composer to manage the dependencies of your project. Here is a minimal example of a composer.json file that just defines a dependency on newest stable version of QuickPay:
Manually upload
If you cannot use composer and all the goodness the autoloader in composer gives you, you can upload /QuickPay/
to your web space. However, then you need to manage the autoloading of the classes yourself.
Usage
Before doing anything you should register yourself with QuickPay and get access credentials. If you haven't please click here to apply.
Create a new client
First you should create a client instance that is anonymous or authorized with api_key
or login credentials provided by QuickPay.
To initialise an anonymous client:
To initialise a client with QuickPay Api Key:
Or you can provide login credentials like:
API Calls
You can afterwards call any method described in QuickPay api with corresponding http method and endpoint. These methods are supported currently: get
, post
, put
, patch
and delete
.
Handling the response
Getting the HTTP status code
:
The returned response object supports 3 different ways of returning the response body, asRaw()
, asObject
, asArray()
.
Setting timeouts
Set timeout and get notified on timeouts:
You can read more about api responses at http://learn.quickpay.net/tech-talk/api/.
Tests
Use composer to create an autoloader:
All versions of quickpay-php-client with dependencies
ext-curl Version *