Stripe payments - Account selection

https://tasks.dev.itflow.org/task_details.php?task_id=22
This commit is contained in:
wrongecho
2025-01-09 14:56:36 +00:00
parent bc417b7cf3
commit d32e3a698f
3 changed files with 12 additions and 5 deletions

View File

@@ -18,7 +18,13 @@ if (isset($_POST['edit_online_payment_settings'])) {
// Logging
logAction("Settings", "Edit", "$session_name edited online payment settings");
$_SESSION['alert_message'] = "Online Payment Settings updated";
if ($config_stripe_account == 0) {
$_SESSION['alert_type'] = "error";
$_SESSION['alert_message'] = "Stripe payment account must be specified!";
} else {
$_SESSION['alert_message'] = "Online Payment Settings updated";
}
header("Location: " . $_SERVER["HTTP_REFERER"]);
}