Skip to content

Commit 635142a

Browse files
authored
Merge pull request #29 from shoa48/amount-checking-fix
Fix: a precedence issue in amount checking
2 parents 9f3be41 + b663ff7 commit 635142a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Moyasar/Mysr/Helper/MoyasarHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function orderAmountInSmallestCurrencyUnit($order)
160160

161161
public function amountSmallUnit($amount, $currency)
162162
{
163-
return (int) $amount * (10 ** $this->currencyHelper->fractionDigits($currency));
163+
return (int) ($amount * (10 ** $this->currencyHelper->fractionDigits($currency)));
164164
}
165165

166166
/**

0 commit comments

Comments
 (0)