Fix bug in PayPal payments due to lack of rounding

master
Sven Slootweg 11 years ago
parent 80de527b7b
commit c98db84878

@ -25,7 +25,7 @@ catch (NotFoundException $e)
if($sPaymentRequest->sCurrency == "btc") if($sPaymentRequest->sCurrency == "btc")
{ {
$sCurrency = urlencode("USD"); $sCurrency = urlencode("USD");
$sAmount = Currency::Convert("usd", "btc", $sPaymentRequest->sAmount); $sAmount = round(Currency::Convert("usd", "btc", $sPaymentRequest->sAmount), 2);
} }
else else
{ {

Loading…
Cancel
Save