ePassporte currency problem. Please help!

Our shop primary currency is EUR.

ePassporte ePpurchase accepts only USD.



Here is the situation:



Order amount is €109.64

ePassporte ePpurchase page shows: $109.64



I need to make “payments/epassporte.php” to send amount in USD, not in EUR, without changing primary currency in cs-cart administration panel.



also, there is a problem with discount:



Subtotal: €109.64

Order discount: €5.48

Discount coupon: happy-new-year

Total: €104.16



ePpurchase page shows the total without discount:

Total : $109.64



Thanks!

any advice?

[QUOTE]RedBridges.net primary currency is EUR.

ePassporte ePpurchase accepts only USD.

Here is the situation:



Order amount is €109.64

ePassporte ePpurchase page shows: $109.64



I need to make “payments/epassporte.php” to send amount in USD, not in EUR, without changing primary currency in cs-cart administration panel.[/QUOTE]



In this case please replace the following part of code in the “epassporte.php” file located in the “payments” directory:



```php $product_name = substr($product_name, 0, 128);



$tax_amount = (!empty($order_info[‘tax_subtotal’])) ? fn_format_price($order_info[‘tax_subtotal’]) : 0;

$shipping_amount = fn_order_shipping_cost($order_info);



$current_location = Registry::get(‘config.current_location’);



echo <<






```

with this one:

```php $product_name = substr($product_name, 0, 128);
$coefficient = db_get_field("SELECT coefficient FROM ?:currencies WHERE currency_code = 'usd'");
$tax_amount = (!empty($order_info['tax_subtotal'])) ? fn_format_price($order_info['tax_subtotal']/$coefficient) : 0;
$shipping_amount = fn_format_price(fn_order_shipping_cost($order_info)/$coefficient);

$current_location = Registry::get('config.current_location');
$total = fn_format_price($order_info['total']/$coefficient);

echo <<




```