diff --git a/backend/app/User/Services/FIB/AuthorizationService.php b/backend/app/User/Services/FIB/AuthorizationService.php index 03a3ce9e..6f6a9422 100644 --- a/backend/app/User/Services/FIB/AuthorizationService.php +++ b/backend/app/User/Services/FIB/AuthorizationService.php @@ -15,7 +15,7 @@ class AuthorizationService public function __construct() { - $this->url = config(''); + $this->url = config('fib.authorization.url'); $this->channelName = ''; } diff --git a/backend/app/User/Services/FIB/CancelPaymentService.php b/backend/app/User/Services/FIB/CancelPaymentService.php index dd46aee0..8f8282c8 100644 --- a/backend/app/User/Services/FIB/CancelPaymentService.php +++ b/backend/app/User/Services/FIB/CancelPaymentService.php @@ -16,7 +16,7 @@ class CancelPaymentService public function __construct() { - $this->url = config(''); + $this->url = config('fib.cancelPayment.url'); $this->channelName = ''; } diff --git a/backend/app/User/Services/FIB/CheckPaymentStatusService.php b/backend/app/User/Services/FIB/CheckPaymentStatusService.php index a956dda1..844412c7 100644 --- a/backend/app/User/Services/FIB/CheckPaymentStatusService.php +++ b/backend/app/User/Services/FIB/CheckPaymentStatusService.php @@ -14,7 +14,7 @@ class CheckPaymentStatusService public function __construct() { - $this->url = config(''); + $this->url = config('fib.checkPaymentStatus.url'); $this->channelName = ''; } diff --git a/backend/app/User/Services/FIB/CreatePaymentService.php b/backend/app/User/Services/FIB/CreatePaymentService.php index 6b744503..3b9801b6 100644 --- a/backend/app/User/Services/FIB/CreatePaymentService.php +++ b/backend/app/User/Services/FIB/CreatePaymentService.php @@ -17,7 +17,7 @@ class CreatePaymentService public function __construct() { - $this->url = config(''); + $this->url = config('fib.createPayment.url'); $this->channelName = ''; } diff --git a/backend/app/User/Services/FIB/RefundService.php b/backend/app/User/Services/FIB/RefundService.php index e0cf197f..3a0dfb5b 100644 --- a/backend/app/User/Services/FIB/RefundService.php +++ b/backend/app/User/Services/FIB/RefundService.php @@ -16,7 +16,7 @@ class RefundService public function __construct() { - $this->url = config(''); + $this->url = config('fib.refund.url'); $this->channelName = ''; } diff --git a/backend/config/fib.php b/backend/config/fib.php new file mode 100644 index 00000000..1ddfc3d4 --- /dev/null +++ b/backend/config/fib.php @@ -0,0 +1,25 @@ + [ + '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'), + ], +];