diff --git a/www/src/Handlers/Account.php b/www/src/Handlers/Account.php index 8a4f4eed25..926588872f 100644 --- a/www/src/Handlers/Account.php +++ b/www/src/Handlers/Account.php @@ -971,7 +971,7 @@ public static function getAccountPage(RequestContext $request_context, string $p 'api_keys' => $acct_info->getApiKeys(), 'wptCustomer' => $customer, 'transactionHistory' => $sub_id ? $request_context->getClient()->getTransactionHistory($sub_id) : null, - 'status' => $customer->getStatus(), + 'status' => str_replace('_', ' ', $customer->getStatus()), 'billing_frequency' => $customer->getBillingFrequency() == 12 ? "Annually" : "Monthly", 'cc_image_url' => "/assets/images/cc-logos/{$customer->getCardType()}.svg", 'masked_cc' => $customer->getMaskedCreditCard(), diff --git a/www/src/User.php b/www/src/User.php index af00f7fd44..3393708142 100644 --- a/www/src/User.php +++ b/www/src/User.php @@ -90,8 +90,11 @@ public function setOwnerId($owner_id): void public function isPaid(): bool { - return $this->is_paid_cp_client && - ($this->payment_status == 'ACTIVE' || $this->isPendingCancelation()); + return $this->is_paid_cp_client && ( + $this->payment_status == 'ACTIVE' || + $this->payment_status == 'PAST_DUE' || + $this->isPendingCancelation() + ); } public function newPortalExperience(): bool