We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 52604f1 + 9f61c4b commit 06a2429Copy full SHA for 06a2429
lib/Api/Plan.php
@@ -138,10 +138,10 @@ public function filterPlans(array $plans, array $filters): array
138
* get price by planCode
139
*
140
*/
141
- public function getPriceByPlanCode(string $planCode): string
+ public function getPriceByPlanCode(string $planCode): float
142
{
143
$plan = $this->getPlan($planCode);
144
145
- return (array_key_exists('recurring_price', $plan)) ? $plan['recurring_price'] : '';
+ return (array_key_exists('recurring_price', $plan)) ? $plan['recurring_price'] : 0;
146
}
147
0 commit comments