function smart_donations_check_license_with_options(&$error)
{
    if (get_transient("smart_donations_check_again")) {
        return true;
    }
    $email = get_option('smart_donations_email');
    $key = get_option('smart_donations_key');
    return smart_donations_check_license($email ? $email : "", $key ? $key : "", $error, false);
}
<?php 
require_once 'smart-donations-license-helpers.php';
if (isset($_POST['license_email'])) {
    $email = $_POST['license_email'];
} else {
    $email = '';
}
if (isset($_POST['license_key'])) {
    $key = $_POST['license_key'];
} else {
    $key = '';
}
$error = "";
$licensingError = 0;
if ($email != null || $key != null) {
    if (smart_donations_check_license($email, $key, $error, true)) {
        require_once 'smart-donations-progress-indicators.php';
        return;
    } else {
        if ($error == null) {
            $error = "Invalid user or license key";
        }
        echo "<div class='error below-h2'><p><strong>Error:</strong> {$error}</p></div>";
        $licensingError = 1;
    }
}
echo "<script type='text/javascript' language='javascript'>var smartDonationsLicensingError={$licensingError};var smartDonationsEmail='{$email}';var smartDonationsKey='{$key}'</script>";
?>


<?php