Hi there,
I'm having a problem with transactions over $1000 being rejected by my bank gateway because of the comma being pushed through. I removed it from the currency and it no longer displays during checkout but for some reason it is still being pushed through to my merchant facility.
I think the code at fault is the following:
Can someone please edit this code for me so the amount is done without a thousand comma? ie: 1234.56 instead of 1,234.56Code:tep_draw_hidden_field('amount', number_format(($order->info['total']) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency)));
Thanks very much in advance.
Also if this isn't the place to be looking then if you have suggestions I'd love to hear them
RESOLUTION:
The code should read as follows:
ie: The number_format() function adds the commas. It should use round()Code:tep_draw_hidden_field('amount', round(($order->info['total']) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency)));




LinkBack URL
About LinkBacks







Bookmarks