diff --git a/app/Models/Order.php b/app/Models/Order.php index e0a42070..d8efeba4 100644 --- a/app/Models/Order.php +++ b/app/Models/Order.php @@ -202,7 +202,7 @@ class Order extends Model */ public function getExpiresAtAttribute() { - if (! $this->isPending()) { + if ($this->status !== static::STATUS_PENDING) { return 0; }