create config file for service
This commit is contained in:
@@ -15,7 +15,7 @@ class AuthorizationService
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->url = config('');
|
||||
$this->url = config('fib.authorization.url');
|
||||
$this->channelName = '';
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ class CancelPaymentService
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->url = config('');
|
||||
$this->url = config('fib.cancelPayment.url');
|
||||
$this->channelName = '';
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ class CheckPaymentStatusService
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->url = config('');
|
||||
$this->url = config('fib.checkPaymentStatus.url');
|
||||
$this->channelName = '';
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ class CreatePaymentService
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->url = config('');
|
||||
$this->url = config('fib.createPayment.url');
|
||||
$this->channelName = '';
|
||||
}
|
||||
|
||||
|
||||
@@ -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
25
backend/config/fib.php
Normal 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'),
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user