Skip to content

Commit

Permalink
[Billing] Fix BillaBear subscription provider when subscription is a …
Browse files Browse the repository at this point in the history
…standalone trial
  • Loading branch information
that-guy-iain committed Jun 22, 2024
1 parent 6db4abb commit 5cbed50
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ public function buildSubscription(\BillaBear\Model\Subscription $subscription):
$entity->setActive(true);
$entity->setPaymentSchedule($subscription->getSchedule());
$entity->setSeats($subscription->getSeatNumber());
$entity->setPlanName($subscription->getPlan()->getName());
$entity->setPlanName($subscription->getPlan()?->getName());
$entity->setValidUntil(new \DateTime($subscription->getValidUntil()));
$entity->setCreatedAt(new \DateTime($subscription->getCreatedAt()));
$entity->setUpdatedAt(new \DateTime($subscription->getUpdatedAt()));
$entity->setCurrency($subscription->getPrice()->getCurrency());
$entity->setCurrency($subscription->getPrice()?->getCurrency());

return $entity;
}
Expand Down

0 comments on commit 5cbed50

Please sign in to comment.