Skip to content

Commit

Permalink
[OBOL] Populate tiers
Browse files Browse the repository at this point in the history
  • Loading branch information
that-guy-iain committed Sep 25, 2024
1 parent 0c42591 commit 24770ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Obol/Provider/Stripe/PriceService.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ public function populatePrice(\Stripe\Price $stripePrice): Price
$price->setBillingType(BillingType::fromStripe($stripePrice->billing_scheme));
$price->setUsageType(UsageType::fromStripe($stripePrice->recurring?->usage_type));
$tiers = [];
foreach($stripePrice->tiers ?? [] as $tier) {
$tiers[] = $this->populatTier($tier)
foreach ($stripePrice->tiers ?? [] as $tier) {
$tiers[] = $this->populatTier($tier);
}
$price->setTiers($tiers);

Expand Down

0 comments on commit 24770ae

Please sign in to comment.