PHP code example of fastje / enot-io-client

1. Go to this page and download the library: Download fastje/enot-io-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

fastje / enot-io-client example snippets


composer 

php composer.phar 


use FASTJE\EnotIO\Client;

$client = new Client([
    'merchantId' => 'your-merchant-id',
    'secretWord' => 'your-secret-word',
    'apiKey' => 'your-api-key',
    'email' => 'your-email',
]);

use ChurakovMike\EnotIO\Client;

$client = new Client();
$client->setMerchantId('your-merchant-id');
$client->setSecretWord('your-merchant-id');
$client->setApiKey('your-api-key');
$client->setEmail('your-email');

use FASTJE\EnotIO\Client;

$client = new Client([
    'api_key' => 'your-api-key',
    'email' => 'your-email',
])

$balance = $client->getBalance();

use FASTJE\EnotIO\Client;

$client = new Client([
    'merchantId' => 'your-merchant-id',
    'secretWord' => 'your-secret-word',
])

$paymentServices = $client->getAvailablePaymentServices();


use FASTJE\EnotIO\Client;

$client = new Client([
    'api_key' => 'your-api-key',
    'email' => 'your-email',
])

$paymentServices = $client->getAvailablePaymentServices($service, $wallet, $amount);