/** * call with parent::selection() in child */ function selection() { if (isset($_SESSION['sofort']['sofort_paymentSecret'])) { unset($_SESSION['sofort']['sofort_paymentSecret']); } if (isset($_SESSION['sofort']['sofort_transactionId'])) { unset($_SESSION['sofort']['sofort_transactionId']); } if (isset($_SESSION['sofort']['sofort_sofortboxjs'])) { unset($_SESSION['sofort']['sofort_sofortboxjs']); } if (isset($_SESSION['sofort']['apiKeyIsValid'])) { return $_SESSION['sofort']['apiKeyIsValid']; } else { if (!isset($_SESSION['sofort']['apiKeyIsValid'])) { $apiTestResult = HelperFunctions::apiKeyIsValid(MODULE_PAYMENT_SOFORT_MULTIPAY_APIKEY); $_SESSION['sofort']['apiKeyIsValid'] = $apiTestResult; return $apiTestResult; } } $_SESSION['sofort']['checkout_process'] = true; }