PDA

View Full Version : 2Checkout Payment Module



michael_s
07-09-2007, 01:52 AM
The version 1.1 has a problem, if you uses another money like mexican currency, when it send you to pay it do not do the conversion to the currency that you set in 2checkout. it takes the same total and put it like the default currency without do the conversion. now it is fixed.

In this case the program will convert to USD from your currency, but if you need another conversion, only change the USD for your currency in catalog/includes/modules/payment find in about line 155

if (DEFAULT_CURRENCY 'USD')
{
$tcoOrderTotal = $currencies->get_value("USD") * $order->info['total'];
}
else
$tcoOrderTotal = $order->info['total'];

change USD for another currency that you want but that is accepted by 2checkout

More... (http://www.oscommerce.com/community/contributions,4846)