Update: 2026-07-06 02:24:21
This commit is contained in:
@@ -404,7 +404,7 @@ function calculateDynamicPrice($country, $minFare, $distance, $duration, $kazanR
|
||||
}
|
||||
|
||||
// Apply kazan (e.g. 11%) on the passenger's price
|
||||
$withCommission = ceil($price * (1 + $kazanPercent / 100));
|
||||
$withCommission = round($price * (1 + $kazanPercent / 100), 2);
|
||||
|
||||
// Driver price is based on the surged fare ($fareWithSurge)
|
||||
$driverPriceTarget = max($fareWithSurge, $minFare);
|
||||
|
||||
Reference in New Issue
Block a user