Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Latest commit

 

History

History
70 lines (42 loc) · 1.74 KB

README.md

File metadata and controls

70 lines (42 loc) · 1.74 KB

This repository is unmaintained.

Please see the official multisafepay client(https://github.com/MultiSafepay/php-sdk)

MultiSafepay API Client

Build Status Scrutinizer Code Quality

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.

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.