<?php

use Voucherify\VoucherifyClient;
use Voucherify\ClientException;

function createVoucherifyClient()
{
    $apiID = config('voucherify.application_id');
    $apiKey = config('voucherify.client_secret_key');
    $apiVersion = config('voucherify.version');
    $apiUrl = config('voucherify.url');

    return new VoucherifyClient($apiID, $apiKey, $apiVersion, $apiUrl);
}
