} elseif ($element0 == 'stripe-setup') { $provider = Provider::FromPaymentConfigCode($element1); if (!is_null($provider)) { $response = new StripeSetupPage($dictionary, $provider); } } elseif ($element0 == 'stripe-return') { $response = new StripeReturnPage($dictionary); } elseif ($client == 'mobile' && $element0 == 'static') { $response = new MobileHoldingPage($dictionary); } else { //cmsPage $cmsPage = null; if ($element0 != '' && $element1 == '') { $cmsPage = CmsPage::FromUri(Application::SITE_CODE, $element0); } elseif ($element0 != '' && $element1 != '') { $cmsPage = CmsPage::FromUri(Application::SITE_CODE, $element1, $element0); } if (!is_null($cmsPage)) { if ($cmsPage->getStatusCode() == CmsPageStatus::PUBLISHED) { $response = new ContentPage($dictionary, $cmsPage); } } } } } //if here we haven't found a valid page so 404 if (is_null($response)) { $response = new Http404Page(Util::PageUri(), new Dictionary('en', 'treatnow.')); } } //if no page here then it's an error condition