monetivo/monetivo-php

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

Monetivo MerchantApi PHP client

1.0.12 2017-03-31 11:29 UTC

This package is not auto-updated.

Last update: 2020-01-24 16:47:10 UTC


README

Requirements and dependencies

You need PHP 5.5 and later. Additionally, make sure that the following PHP extensions are installed on your server:

Composer

You can install the client via Composer by running the command:

composer require monetivo/monetivo-php

Then use Composer's autoload mechanism:

require_once('vendor/autoload.php');

Manual Installation

If you do not wish to use Composer, you can download the latest release. Then include the autoload.php file.

require_once('/path/to/monetivo-php/autoload.php');

Getting Started

Basic usage looks like:

<?php

try {
    // app token
    $app_token = 'apptoken';

    // merchant's login
    $login = 'merchant_test_12345';

    // merchant's password
    $password = 'very_strong_password';

    // init the library
    $api = new \Monetivo\MerchantApi($app_token);

    // try to authenticate
    $token = $api->auth($login, $password);

    // następne zapytania do API
}
catch(Monetivo\Exceptions\MonetivoException $e) {
  echo $e->getHttpCode();
  echo $e->getResponse();
}

Documentation

This is just a README so please see https://docs.monetivo.com/ for up-to-date documentation.

Issues

If you find any issues, please do not hesitate to file them via GitHub. You can also submit your ideas about improving our

Support and integration

In case you have any troubles with the integration please contact our support. We offer several plugins for different e-commerce platforms to make your integration easy.