Files
myron f89362528a Fix loyalty system: load tiers from DB, award points on payment
- LoyaltyProgram now loads tiers from loyalty_tiers DB table in constructor
  with fallback to hardcoded defaults if table is empty
- awardPoints() accepts order_id param with duplicate-prevention check so
  points cannot be double-awarded for the same order
- Inserts balance_after into loyalty_transactions for accurate history
- payment-status.php: award points after Stripe checkout session or
  PaymentIntent confirmed as paid
- create-checkout-session.php: award points in demo mode payment path

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-14 20:58:37 +00:00
..
2026-05-22 12:52:44 +00:00
2026-05-22 12:52:44 +00:00
2026-05-22 12:52:44 +00:00
2026-05-22 12:52:44 +00:00
2026-05-22 12:52:44 +00:00
2026-05-22 12:52:44 +00:00
2026-05-22 12:52:44 +00:00
2026-05-22 12:52:44 +00:00
2026-05-22 12:52:44 +00:00
2026-05-22 12:52:44 +00:00
2026-05-22 12:52:44 +00:00
2026-05-22 12:52:44 +00:00
2026-05-22 12:52:44 +00:00
2026-05-22 12:52:44 +00:00