create config file for service

This commit is contained in:
2026-04-29 14:42:02 +03:30
parent 7fb9e345a2
commit 5d2501c71c
6 changed files with 30 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ class AuthorizationService
public function __construct()
{
$this->url = config('');
$this->url = config('fib.authorization.url');
$this->channelName = '';
}

View File

@@ -16,7 +16,7 @@ class CancelPaymentService
public function __construct()
{
$this->url = config('');
$this->url = config('fib.cancelPayment.url');
$this->channelName = '';
}

View File

@@ -14,7 +14,7 @@ class CheckPaymentStatusService
public function __construct()
{
$this->url = config('');
$this->url = config('fib.checkPaymentStatus.url');
$this->channelName = '';
}

View File

@@ -17,7 +17,7 @@ class CreatePaymentService
public function __construct()
{
$this->url = config('');
$this->url = config('fib.createPayment.url');
$this->channelName = '';
}

View File

@@ -16,7 +16,7 @@ class RefundService
public function __construct()
{
$this->url = config('');
$this->url = config('fib.refund.url');
$this->channelName = '';
}

25
backend/config/fib.php Normal file
View File

@@ -0,0 +1,25 @@
<?php
return [
'authorization' => [
'url' => env('FIB_AUTHORIZATION_URL'),
'client_id' => env('FIB_CLIENT_ID'),
'client_secret' => env('FIB_CLIENT_SECRET'),
],
'createPayment' => [
'url' => env('FIB_CREATE_PAYMENT_URL'),
],
'checkPaymentStatus' => [
'url' => env('FIB_CHECK_PAYMENT_STATUS_URL'),
],
'cancelPayment' => [
'url' => env('FIB_CANCEL_PAYMENT_URL'),
],
'refund' => [
'url' => env('FIB_REFUND_URL'),
],
];