diff --git a/src/App/Providers/AppServiceProvider.php b/src/App/Providers/AppServiceProvider.php index 237ef520..3d27a7a4 100644 --- a/src/App/Providers/AppServiceProvider.php +++ b/src/App/Providers/AppServiceProvider.php @@ -1,6 +1,7 @@ [ - 'usage_bigger_than_balance' => [ - 'active' => isset($settings->usage_bigger_than_balance) ? intval($settings->usage_bigger_than_balance) : true, - ], - 'limit_usage_in_new_accounts' => [ - 'active' => isset($settings->limit_usage_in_new_accounts) ? intval($settings->limit_usage_in_new_accounts) : true, - 'amount' => isset($settings->limit_usage_in_new_accounts_amount) ? intval($settings->limit_usage_in_new_accounts_amount) : 20, - ], - ] - ]); + config([ + 'subscription.metered_billing.fraud_prevention_mechanism' => [ + 'usage_bigger_than_balance' => [ + 'active' => isset($settings->usage_bigger_than_balance) ? intval($settings->usage_bigger_than_balance) : true, + ], + 'limit_usage_in_new_accounts' => [ + 'active' => isset($settings->limit_usage_in_new_accounts) ? intval($settings->limit_usage_in_new_accounts) : true, + 'amount' => isset($settings->limit_usage_in_new_accounts_amount) ? intval($settings->limit_usage_in_new_accounts_amount) : 20, + ], + ] + ]); + } catch (PDOException $e) {} } private function setLocale(): void