diff --git a/tipi_payment_plugin/templates/tipi_payment_plugin/tipi.html b/tipi_payment_plugin/templates/tipi_payment_plugin/tipi.html index 3dab32e..a0fe057 100644 --- a/tipi_payment_plugin/templates/tipi_payment_plugin/tipi.html +++ b/tipi_payment_plugin/templates/tipi_payment_plugin/tipi.html @@ -71,7 +71,7 @@ function call_tipi() { document.getElementById(value + '_error').style.display='inline'; return false; } - return (parseInt(euros) + parseInt(cents)/100) * 100; + return parseInt(euros) * 100 + parseInt(cents); } document.getElementById(id + '_error').style.display='inline'; return false;