PHP code example of giorgigigauri / tbcbank

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

    

giorgigigauri / tbcbank example snippets


TBC_API_URL=
TBC_API_KEY=
TBC_CLIENT_ID=
TBC_CLIENT_SECRET=
TBC_CALLBACK_URL=

return [
];

import Giorgigigauri\Facades\Tbcbank;
    $amount = [
        'currency' => 'GEL',
        'total' => 546,
        'subTotal' => 400,
        'tax' => 0,
        'shipping' => 0,
    ];
    $payment = TbcBank::setAmount($amount)
        ->setReturnUrl('shopping.ge/callback')
        ->setExtra('Test Text')
        ->createPayment();
    dd($payment);
bash
php artisan vendor:publish --tag="tbcbank-config"
php artisan optimize:clear
bash
php artisan vendor:publish --tag="tbcbank-config"
bash
php artisan vendor:publish --tag="tbcbank-views"