Skip to content

Commit 4e15783

Browse files
authored
Merge pull request #3163 from catchpoint/past_due_status_fix
fixed past due status
2 parents ea2865d + 2574c44 commit 4e15783

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

www/src/Handlers/Account.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ public static function getAccountPage(RequestContext $request_context, string $p
971971
'api_keys' => $acct_info->getApiKeys(),
972972
'wptCustomer' => $customer,
973973
'transactionHistory' => $sub_id ? $request_context->getClient()->getTransactionHistory($sub_id) : null,
974-
'status' => $customer->getStatus(),
974+
'status' => str_replace('_', ' ', $customer->getStatus()),
975975
'billing_frequency' => $customer->getBillingFrequency() == 12 ? "Annually" : "Monthly",
976976
'cc_image_url' => "/assets/images/cc-logos/{$customer->getCardType()}.svg",
977977
'masked_cc' => $customer->getMaskedCreditCard(),

www/src/User.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,11 @@ public function setOwnerId($owner_id): void
9090

9191
public function isPaid(): bool
9292
{
93-
return $this->is_paid_cp_client &&
94-
($this->payment_status == 'ACTIVE' || $this->isPendingCancelation());
93+
return $this->is_paid_cp_client && (
94+
$this->payment_status == 'ACTIVE' ||
95+
$this->payment_status == 'PAST_DUE' ||
96+
$this->isPendingCancelation()
97+
);
9598
}
9699

97100
public function newPortalExperience(): bool

0 commit comments

Comments
 (0)