ntholenaar / multisafepay-client

此包已被 放弃 并不再维护。没有建议的替代包。

MultiSafepay 支付处理库

0.2.3 2017-06-09 10:00 UTC

This package is not auto-updated.

Last update: 2020-12-25 22:58:02 UTC


README

请参阅官方 multisafepay 客户端(https://github.com/MultiSafepay/php-sdk)

MultiSafepay API 客户端

Build Status Scrutinizer Code Quality

MultiSafepay API 的客户端。

有关 MultiSafepay API 的更多信息,请参阅: https://www.multisafepay.com/documentation/doc/API-Reference/

要求

以下版本的 PHP 受支持。

安装

您可以使用 composer require 将客户端添加到您的 composer.json 文件中。

$ composer require ntholenaar/multisafepay-client

用法

客户端设置。

    $client = new Client();

    $client->setApiKey('API-KEY');

获取所有网关。

    $response = $client->environment('test')->api('gateways')->all();
    
    var_dump($response);

获取特定网关的发行商。

    $response = $client->environment('test')->api('issuers')->all('IDEAL');
        
    var_dump($response);

获取特定订单的详细信息。

    $response = $client->environment('test')->api('orders')->show('ORDER-ID');
        
    var_dump($response);

致谢

许可

MIT 许可证(MIT)。请参阅 许可文件 获取更多信息。