Skip to content

Commit 06a2429

Browse files
authored
Merge pull request #19 from StoreFactory/feature/YP-3594
Fixed return float price
2 parents 52604f1 + 9f61c4b commit 06a2429

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Api/Plan.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ public function filterPlans(array $plans, array $filters): array
138138
* get price by planCode
139139
*
140140
*/
141-
public function getPriceByPlanCode(string $planCode): string
141+
public function getPriceByPlanCode(string $planCode): float
142142
{
143143
$plan = $this->getPlan($planCode);
144144

145-
return (array_key_exists('recurring_price', $plan)) ? $plan['recurring_price'] : '';
145+
return (array_key_exists('recurring_price', $plan)) ? $plan['recurring_price'] : 0;
146146
}
147147
}

0 commit comments

Comments
 (0)