function checkConnectivity() { if (!navigator.onLine) { showError('You are offline. Please check your internet connection.'); return false; } return true;}// Add network status listenerswindow.addEventListener('online', () => { hideError(); retryFailedPayments();});window.addEventListener('offline', () => { showError('You are offline. Payment processing will resume when connected.');});