Files
exchange-2.0/app/Classes/General/VoucherifyHelper.php
2023-05-30 22:02:09 +08:00

15 lines
376 B
PHP

<?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);
}