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

nielstholenaar/multisafepay-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.