I have this class containing a method that performs a few processes for displaying the payment page. class Payment extends Controller { public function displayPaymentPage() { $ session = new Session(); if(is_null($ session->getSessionKey(‘userId’))) { header(‘Location: /login’); } else { $ cart = new Cart(); if($ cart->doesCartExistForCurrentUser()) { $ session = new Session(); $ cartId =Read more