bluebadger/monerisapi

This package is abandoned and no longer maintained. No replacement package was suggested.

Enhanced MPG unified API for PHP 7.x

1.0.0 2017-03-15 17:11 UTC

This package is not auto-updated.

Last update: 2018-12-04 15:42:23 UTC


README

Total Downloads Latest Stable Version

Enhanced MPG unified API library for PHP 7.x

Inspired by https://github.com/Moneris/eCommerce-Unified-API-PHP

Features

  • PHP 7.x compatible
  • Improvement reliability
  • Composer package
  • Mimic as much as original class nomenclature

Install

composer require cyphp/empg

Example

require_once './vender/autoload.php';

use Empg\Client;

$client = new Client('MY_STORE_ID', 'MY_API_TOKEN');

$response = $client->post(
    new MpgRequest(
        new MpgTransaction([
            // ...
        ])
    )
);

Use Test Endpoints


$client = new Client('MY_STORE_ID', 'MY_API_TOKEN', [
    'env' => Empg\Configuration::ENV_TEST,
]);

License

MIT