Complete coupon system integration with payment processing

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-11-07 11:59:06 +00:00
parent 291fd81504
commit 7dcecd49ed
3 changed files with 58 additions and 1 deletions

View file

@ -114,7 +114,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['apply_coupon'])) {
if (!$game_valid) {
$coupon_error = 'This coupon is not valid for the items in your cart.';
} else {
// Apply coupon
// Apply coupon (stored in session, applied at checkout)
$applied_coupon = $coupon;
$coupon_code = $submitted_code;
$coupon_discount_percent = floatval($coupon['discount_percent']);