CodeIssuesPull RequestsActionsSecurityInsights
✨ AI
More
Settings

Fix critical booking system failures preventing all card payments #3707

Merged⚡ AI-generatedMccantynz wants to mergeclaude/fix-booking-system-bYG8smainopened Apr 27, 2026
ccantynzcommented Apr 27, 2026

Originally written by @ccantynz-alt on GitHub.
Imported from https://github.com/ccantynz-alt/Hibiscus-to-airport/pull/40


  • BookingPage: fix Stripe checkout URL from dead /api/payment/create-checkout to correct /api/stripe/create-session — this was breaking every card payment
  • PaymentSuccess: replace non-existent lookup-by-id/lookup-by-session endpoints with real /api/bookings/:ref — success page now loads correctly after payment
  • api/bookings: send customer confirmation email+SMS for cash (pay_on_day) bookings — previously only Stripe-paid bookings triggered customer notifications
  • api/bookings: add payment_method to INSERT so cash/stripe is persisted
  • BookingPage: fix promo code to use correct GET /api/promo?validate=true&code= endpoint with client-side discount calculation (was POST to dead URL)
  • .env.example: remove stale Render.com BACKEND_URL reference

https://claude.ai/code/session_011qJtQxLV7nmRx5esuQXkbb

Cross-repo impact

See what breaks downstream if this PR merges.

Analyze →
⮌ Merged

This pull request was merged into main.

c comment · e edit title · m merge · a approve · r request changes · ? shortcuts