Fix issue #1 by changing variable name and converting currency to lowercase before checking

master
Sven Slootweg 12 years ago
parent 3255a79e76
commit 81f4ad43c5

@ -67,7 +67,7 @@ if(!empty($_POST['submit']))
switch($sPaymentMethod->sType)
{
case PaymentMethod::PAYPAL:
if($sPaymentRequest->sCurrency == "btc")
if(strtolower($_POST['currency']) == "btc")
{
$sCurrency = urlencode("USD");
$sAmount = round(Currency::Convert("usd", "btc", $_POST['amount']), 2);

@ -22,7 +22,7 @@ catch (NotFoundException $e)
throw new RouterException("No such payment method found.");
}
if($sPaymentRequest->sCurrency == "btc")
if(strtolower($sPaymentRequest->sCurrency) == "btc")
{
$sCurrency = urlencode("USD");
$sAmount = round(Currency::Convert("usd", "btc", $sPaymentRequest->sAmount), 2);

Loading…
Cancel
Save