Skip to content

Commit 5704291

Browse files
committed
Update default configuration
1 parent 3d6a710 commit 5704291

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

backend/app/Services/Application/Handlers/Account/CreateAccountHandler.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ public function handle(CreateAccountDTO $accountData): AccountDomainObject
6060
// If the app is not running in SaaS mode, we can immediately verify the account.
6161
// Same goes for the email verification below.
6262
'account_verified_at' => $isSaasMode ? null : now()->toDateTimeString(),
63+
'configuration' => [
64+
'application_fee' => [
65+
'percentage' => config('app.saas_stripe_application_fee_percent'),
66+
'fixed' => config('app.saas_stripe_application_fee_fixed') ?? 0,
67+
],
68+
],
6369
]);
6470

6571
$user = $this->getExistingUser($accountData) ?? $this->userRepository->create([

backend/config/cors.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
'allowed_headers' => ['*'],
2727

28-
'exposed_headers' => ['X-Auth-Token'],
28+
'exposed_headers' => ['X-Auth-Token', 'Set-Cookie'],
2929

3030
'max_age' => 0,
3131

backend/database/migrations/2025_01_20_045159_add_configuration_to_accounts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function up(): void
1515
DB::table('accounts')->update(['configuration' => [
1616
'application_fee' => [
1717
'percentage' => config('app.saas_stripe_application_fee_percent'),
18-
'fixed' => 0,
18+
'fixed' => config('app.saas_stripe_application_fee_fixed') ?? 0,
1919
]
2020
]]);
2121
}

0 commit comments

Comments
 (0)