ntholenaar / multisafepay-client
MultiSafepay payment processing library
Installs: 6 633
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 1
Requires
- php-http/client-common: ^1.2
- php-http/client-implementation: ^1.0
- php-http/discovery: ^1.0
- php-http/message: ^1.0
Requires (Dev)
- php-http/guzzle6-adapter: ^1.1.1
- phpunit/phpunit: ^5.5
- squizlabs/php_codesniffer: 2.*
This package is not auto-updated.
Last update: 2020-12-25 22:58:02 UTC
README
Please see the official multisafepay client(https://github.com/MultiSafepay/php-sdk)
MultiSafepay API Client
API Client for the MultiSafepay API.
For more information about the MultiSafepay API see: https://www.multisafepay.com/documentation/doc/API-Reference/
Requirements
The following versions of PHP are supported.
- PHP 5.6
- PHP 7.0
- HTTPlug compatible HTTP Library. (See: http://docs.php-http.org/en/latest/httplug/users.html)
Installation
You can use composer require
to add the client to your composer.json
file.
$ composer require ntholenaar/multisafepay-client
Usage
Client setup.
$client = new Client(); $client->setApiKey('API-KEY');
Get all gateways
$response = $client->environment('test')->api('gateways')->all(); var_dump($response);
Get issuers for an particular gateway.
$response = $client->environment('test')->api('issuers')->all('IDEAL'); var_dump($response);
Get details about an particular order.
$response = $client->environment('test')->api('orders')->show('ORDER-ID'); var_dump($response);
Credits
License
The MIT License (MIT). Please see License File for more information.