Merge pull request #1146 from itflow-org/stripe-account-ui

Stripe payments - Account selection
This commit is contained in:
wrongecho 2025-01-09 15:01:46 +00:00 committed by GitHub
commit 77b3eca687
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -18,8 +18,7 @@ if (isset($_POST['edit_online_payment_settings'])) {
// Logging
logAction("Settings", "Edit", "$session_name edited online payment settings");
if ($config_stripe_account == 0) {
if ($config_stripe_enable && $config_stripe_account == 0) {
$_SESSION['alert_type'] = "error";
$_SESSION['alert_message'] = "Stripe payment account must be specified!";
} else {