public function getCustomerIsActive($code = null, $remainActiveThroughEndOfPeriod = false) {
		$subscription = $this->getCustomerSubscription($code);
		if ($subscription['canceledDatetime']) {
			if (strtotime($subscription['canceledDatetime']) <= time()) {
				if ($remainActiveThroughEndOfPeriod) {
					$invoice = $this->getCustomerInvoice($code);
					if (strtotime($invoice['billingDatetime']) > time()) {
						return true;
					}
				}
				return false;
			}
		}
		return true;
	}