nielstholenaar / multisafepay-client

Client for the MultiSafepay API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Client for the MultiSafepay API

License:MIT License


Languages

Language:PHP 100.0%