fix: 🚑️ Fixed Config Variable Name

This commit is contained in:
IceToast 2022-01-15 17:53:47 +01:00
parent c8071b64d9
commit 8e739ccf74

View file

@ -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');
}
}