Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php |
— | — | @@ -1285,55 +1285,55 @@ |
1286 | 1286 | public function convert_to_usd( $currency_code, $amount ) { |
1287 | 1287 | switch ( strtoupper( $currency_code ) ) { |
1288 | 1288 | case 'USD': |
1289 | | - $usd_amount = $amount * 1; |
| 1289 | + $usd_amount = $amount / 1; |
1290 | 1290 | break; |
1291 | 1291 | case 'GBP': |
1292 | | - $usd_amount = $amount * 1; |
| 1292 | + $usd_amount = $amount / 1; |
1293 | 1293 | break; |
1294 | 1294 | case 'EUR': |
1295 | | - $usd_amount = $amount * 1; |
| 1295 | + $usd_amount = $amount / 1; |
1296 | 1296 | break; |
1297 | 1297 | case 'AUD': |
1298 | | - $usd_amount = $amount * 2; |
| 1298 | + $usd_amount = $amount / 2; |
1299 | 1299 | break; |
1300 | 1300 | case 'CAD': |
1301 | | - $usd_amount = $amount * 1; |
| 1301 | + $usd_amount = $amount / 1; |
1302 | 1302 | break; |
1303 | 1303 | case 'CHF': |
1304 | | - $usd_amount = $amount * 1; |
| 1304 | + $usd_amount = $amount / 1; |
1305 | 1305 | break; |
1306 | 1306 | case 'CZK': |
1307 | | - $usd_amount = $amount * 20; |
| 1307 | + $usd_amount = $amount / 20; |
1308 | 1308 | break; |
1309 | 1309 | case 'DKK': |
1310 | | - $usd_amount = $amount * 5; |
| 1310 | + $usd_amount = $amount / 5; |
1311 | 1311 | break; |
1312 | 1312 | case 'HKD': |
1313 | | - $usd_amount = $amount * 10; |
| 1313 | + $usd_amount = $amount / 10; |
1314 | 1314 | break; |
1315 | 1315 | case 'HUF': |
1316 | | - $usd_amount = $amount * 200; |
| 1316 | + $usd_amount = $amount / 200; |
1317 | 1317 | break; |
1318 | 1318 | case 'JPY': |
1319 | | - $usd_amount = $amount * 100; |
| 1319 | + $usd_amount = $amount / 100; |
1320 | 1320 | break; |
1321 | 1321 | case 'NZD': |
1322 | | - $usd_amount = $amount * 2; |
| 1322 | + $usd_amount = $amount / 2; |
1323 | 1323 | break; |
1324 | 1324 | case 'NOK': |
1325 | | - $usd_amount = $amount * 10; |
| 1325 | + $usd_amount = $amount / 10; |
1326 | 1326 | break; |
1327 | 1327 | case 'PLN': |
1328 | | - $usd_amount = $amount * 5; |
| 1328 | + $usd_amount = $amount / 5; |
1329 | 1329 | break; |
1330 | 1330 | case 'SGD': |
1331 | | - $usd_amount = $amount * 2; |
| 1331 | + $usd_amount = $amount / 2; |
1332 | 1332 | break; |
1333 | 1333 | case 'SEK': |
1334 | | - $usd_amount = $amount * 10; |
| 1334 | + $usd_amount = $amount / 10; |
1335 | 1335 | break; |
1336 | 1336 | case 'ILS': |
1337 | | - $usd_amount = $amount * 5; |
| 1337 | + $usd_amount = $amount / 5; |
1338 | 1338 | break; |
1339 | 1339 | default: |
1340 | 1340 | $usd_amount = $amount; |