/** * Constructor. * Takes information from GET and sends it to KlarnaAjax and * the Dispatcher. */ public function __construct() { $country = $_GET['country']; $option = str_replace('klarna_box_', '', $_GET['type']); if ($option == 'special') { $option = 'spec'; } KlarnaUtils::configureKiTT($option); KlarnaUtils::configureKlarna($option); $dispatcher = KiTT::ajaxDispatcher(new KiTT_Addresses(KiTT::api($country)), null); $dispatcher->dispatch(); }