PHP code example of rhaima / laravel-flouci

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

    

rhaima / laravel-flouci example snippets


Flouci\Laravel\FlouciServiceProvider::class,

use Flouci\Laravel\Facades\Flouci;

$payment = Flouci::generatePayment([
    'amount' => 10000,
    'developer_tracking_id' => 'order_1001',
]);

$verification = Flouci::verifyPayment($payment['result']['payment_id']);

$payment = Flouci::generatePayment([
    'amount' => 10000,
    'developer_tracking_id' => 'order_1002',
    'accept_card' => false,
    'image_url' => 'https://example.com/logo.png',
]);
bash
php artisan vendor:publish --tag=flouci-config