From 5298d03d27d1c690d1817b39eb4fc0621fe57f03 Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Wed, 14 Jan 2026 13:21:36 +0800 Subject: [PATCH 1/3] environment variables example update --- .env.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.example b/.env.example index eb03c862..85196360 100644 --- a/.env.example +++ b/.env.example @@ -78,5 +78,5 @@ SENDING_EMAIL_WELCOME_VOUCHER_ENABLED=false E_INVOICE_START_DATE="2025-07-01 00:00:00" -MAINTENANCE_MESSAGE_TITLE="We'll be back online on 00:00 1/7/2025" +MAINTENANCE_MESSAGE_TITLE="" # default empty, e.g. We'll be back online on 00:00 1/7/2025 MAINTENANCE_MESSAGE="Sorry for the inconvenience but we're performing some maintenance at the moment." From 570adf183bf48ed2cf1f4b1eebb0569901659664 Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Wed, 14 Jan 2026 13:23:41 +0800 Subject: [PATCH 2/3] Update environment variables --- .../Accounts/ControllersLogic/UserEmailVerificationLogic.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Classes/Modules/Accounts/ControllersLogic/UserEmailVerificationLogic.php b/app/Classes/Modules/Accounts/ControllersLogic/UserEmailVerificationLogic.php index 13a8bcc7..db5888e8 100644 --- a/app/Classes/Modules/Accounts/ControllersLogic/UserEmailVerificationLogic.php +++ b/app/Classes/Modules/Accounts/ControllersLogic/UserEmailVerificationLogic.php @@ -84,8 +84,7 @@ class UserEmailVerificationLogic extends AbstractControllerLogic $user = $attempt->user; $this->verifiesUser->execute($user); - // if (env('SENDING_EMAIL_WELCOME_VOUCHER_ENABLED', false)){ - if (app()->environment('production') && env('SENDING_EMAIL_WELCOME_VOUCHER_ENABLED', false)){ + if (app()->environment('production') && env('SENDING_EMAIL_WELCOME_VOUCHER_ENABLED', true)){ try{ //In case voucher got deleted unintentionally $voucher = $this->fetchesVoucher->execute(['code' => Vouchers::WELCOME_50_PERCENT_OFF]); if($voucher) $this->sendWelcomeVoucherEmail::dispatch($user, $voucher, 1); From 0fef8bcffcbb50d74c7b27a04da8b66ea0daded6 Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Wed, 14 Jan 2026 13:41:53 +0800 Subject: [PATCH 3/3] Update environment variables --- config/voucherify.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/voucherify.php b/config/voucherify.php index c97fab5b..78c67c7e 100644 --- a/config/voucherify.php +++ b/config/voucherify.php @@ -3,6 +3,6 @@ return [ 'application_id' => env('VOUCHERIFY_APPLICATION_ID', ''), 'client_secret_key' => env('VOUCHERIFY_CLIENT_SECRET_KEY', ''), - 'version' => env('VOUCHERIFY_VERSION', ''), - 'url' => env('VOUCHERIFY_URL', ''), + 'version' => env('VOUCHERIFY_VERSION', 'v2018-08-01'), + 'url' => env('VOUCHERIFY_URL', 'https://as1.api.voucherify.io'), ];