PHP code example of thejano / fib-payouts-laravel

1. Go to this page and download the library: Download thejano/fib-payouts-laravel 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/ */

    

thejano / fib-payouts-laravel example snippets


use TheJano\FibPayouts\Facades\FibPayout;

$token = FibPayout::getToken();

$payout = FibPayout::createPayout(
    amount: 1000,
    targetAccountIban: 'IQ23FIQB004085190510001', 
    description: 'Payment for services'
);

$response = FibPayout::authorizePayout('12345-abcde-67890');

$details = FibPayout::getPayoutDetails('12345-abcde-67890');
sh
php artisan vendor:publish --provider="TheJano\FibPayouts\Providers\FibPayoutsServiceProvider"

sh
php artisan config:clear
sh
php artisan test