1. Go to this page and download the library: Download yadahan/laravel-cardcom 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/ */
yadahan / laravel-cardcom example snippets
'providers' => [
// Other service providers...
Yadahan\Cardcom\CardcomServiceProvider::class,
],
// The first ( (optional, default false) parameter, is cancel or refund transaction
Cardcom::cancel('12345678', true);
// With optional pertialy amount parameter (The second parameter must be false)
Cardcom::cancel('12345678', false, 10);