1. Go to this page and download the library: Download erdaldemirci/laravel-ininal 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/ */
erdaldemirci / laravel-ininal example snippets
// Import the class namespaces first, before using it directly
use ErdalDemirci\Ininal\Services\Ininal as IninalClient;
$provider = new IninalClient;
// Through facade. No need to import namespaces
$provider = \Ininal::setProvider();
return [
'mode' => env('ININAL_MODE', 'sandbox'), // Can only be 'sandbox' Or 'live'. If empty or invalid, 'live' will be used.
'api_key' => env('ININAL_API_KEY', ''),
'api_secret' => env('ININAL_API_SECRET', ''),
'locale' => env('ININAL_LOCALE', 'TR'), // force gateway language i.e. TR, EN
];