fix: 🚑️ Fixed Config Variable Name
This commit is contained in:
parent
c8071b64d9
commit
8e739ccf74
1 changed files with 8 additions and 8 deletions
|
@ -197,8 +197,8 @@ class PaymentController extends Controller
|
|||
|
||||
event(new UserUpdateCreditsEvent($user));
|
||||
|
||||
//only create invoice if SETTINGS::INVOICE:ENABLE is true
|
||||
if (config('SETTINGS::INVOICE:ENABLE') == 'true') {
|
||||
//only create invoice if SETTINGS::INVOICE:ENABLED is true
|
||||
if (config('SETTINGS::INVOICE:ENABLED') == 'true') {
|
||||
$this->createInvoice($user, $payment, 'paid');
|
||||
}
|
||||
|
||||
|
@ -340,8 +340,8 @@ class PaymentController extends Controller
|
|||
|
||||
event(new UserUpdateCreditsEvent($user));
|
||||
|
||||
//only create invoice if SETTINGS::INVOICE:ENABLE is true
|
||||
if (config('SETTINGS::INVOICE:ENABLE') == 'true') {
|
||||
//only create invoice if SETTINGS::INVOICE:ENABLED is true
|
||||
if (config('SETTINGS::INVOICE:ENABLED') == 'true') {
|
||||
$this->createInvoice($user, $payment, 'paid');
|
||||
}
|
||||
|
||||
|
@ -366,8 +366,8 @@ class PaymentController extends Controller
|
|||
'credit_product_id' => $creditProduct->id,
|
||||
]);
|
||||
|
||||
//only create invoice if SETTINGS::INVOICE:ENABLE is true
|
||||
if (config('SETTINGS::INVOICE:ENABLE') == 'true') {
|
||||
//only create invoice if SETTINGS::INVOICE:ENABLED is true
|
||||
if (config('SETTINGS::INVOICE:ENABLED') == 'true') {
|
||||
$this->createInvoice($user, $payment, 'paid');
|
||||
}
|
||||
|
||||
|
@ -426,8 +426,8 @@ class PaymentController extends Controller
|
|||
$user->notify(new ConfirmPaymentNotification($payment));
|
||||
event(new UserUpdateCreditsEvent($user));
|
||||
|
||||
//only create invoice if SETTINGS::INVOICE:ENABLE is true
|
||||
if (config('SETTINGS::INVOICE:ENABLE') == 'true') {
|
||||
//only create invoice if SETTINGS::INVOICE:ENABLED is true
|
||||
if (config('SETTINGS::INVOICE:ENABLED') == 'true') {
|
||||
$this->createInvoice($user, $payment, 'paid');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue