Skip to content
This repository has been archived by the owner on Oct 21, 2019. It is now read-only.
/ monetivo-php Public archive

PHP client for simple and fast integration with Monetivo online payments system

License

Notifications You must be signed in to change notification settings

monetivo/monetivo-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monetivo PHP Client

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.

About

PHP client for simple and fast integration with Monetivo online payments system

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages