Changeset 2886

Show
Ignore:
Timestamp:
08/02/10 10:50:51 (2 years ago)
Author:
areski
Message:

Fix for decimal on moneybooker

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/common/lib/epayment/methods/moneybookers.php

    r2351 r2886  
    5959                 
    6060                $currencyObject = new currencies(); 
     61                $amount_toprocess = number_format($order->info['total'] , $currencyObject->get_decimal_places($my_currency)); 
     62                $amount_toprocess = str_replace(',', '.', $amount_toprocess); 
     63                 
    6164                $process_button_string = tep_draw_hidden_field('pay_to_email', MODULE_PAYMENT_MONEYBOOKERS_ID) . 
    6265                                                                tep_draw_hidden_field('language', $my_language) . 
    63                                                                 tep_draw_hidden_field('amount', number_format($order->info['total'] , $currencyObject->get_decimal_places($my_currency))) . 
     66                                                                tep_draw_hidden_field('amount', $amount_toprocess) . 
    6467                                                                tep_draw_hidden_field('currency', $my_currency) . 
    6568                                                                tep_draw_hidden_field('detail1_description', STORE_NAME) . 
     
    7275                                                                tep_draw_hidden_field('country', $order->billing['country']['moneybookers']) . 
    7376                                                                tep_draw_hidden_field('pay_from_email', $order->customer['email_address']);  
    74                                                                 if($transactionID != 0) 
    75                                                                 { 
     77                                                                if($transactionID != 0) { 
    7678                                                                        $process_button_string .= tep_draw_hidden_field('transaction_id', $transactionID); 
    7779                                                                }