Skip to content

Commit

Permalink
[Billing] Call get active subscriptions endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
that-guy-iain committed Jun 24, 2024
1 parent 1ccbac6 commit d1f0eac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct(private SdkFactory $sdkFactory)

public function getSubscriptionsForCustomer(CustomerInterface $customer): array
{
$response = $this->sdkFactory->createSubscriptionsApi()->getForCustomer($customer->getExternalCustomerReference());
$response = $this->sdkFactory->createSubscriptionsApi()->getActiveForCustomer($customer->getExternalCustomerReference());
$output = [];
foreach ($response->getData() as $subscription) {
$output[] = $this->buildSubscription($subscription);
Expand Down

0 comments on commit d1f0eac

Please sign in to comment.