From c98db84878bed6321023f2a83f02ee903ddcabbd Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Thu, 28 Feb 2013 08:53:23 +0100 Subject: [PATCH] Fix bug in PayPal payments due to lack of rounding --- public_html/modules/payment/paypal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/modules/payment/paypal.php b/public_html/modules/payment/paypal.php index 0e755b8..1641a88 100644 --- a/public_html/modules/payment/paypal.php +++ b/public_html/modules/payment/paypal.php @@ -25,7 +25,7 @@ catch (NotFoundException $e) if($sPaymentRequest->sCurrency == "btc") { $sCurrency = urlencode("USD"); - $sAmount = Currency::Convert("usd", "btc", $sPaymentRequest->sAmount); + $sAmount = round(Currency::Convert("usd", "btc", $sPaymentRequest->sAmount), 2); } else {