[FIX] Refactor Stripe Checkout handling with debug logs and fallback support
- Extracted payment handling into reusable function
handle_payments_from_gateway() - Implemented fallback via
template_redirecton order-received page to ensure order completion - Improved code structure and maintainability