emporiolive.com Posted June 2, 2009 Share Posted June 2, 2009 Hi all I am using Moneybookers latest contribution for a while in my shop. I realized that if I try to make a transaction with a value above 6 digits (including decimal digits), for example: 1000.00 the following message is given by the gateway: Payment to EmporioLive.com EmporioLive.com Order # 11055 Por Item (CTT) 30.00 TOTAL PAYABLE : 1.00 EUR Payment to EmporioLive.com TOTAL PAYABLE : 1.00 EUR Transaction not allowed Invalid amount If I try with an amount of, for example, 3500.00 EUR I get: Payment to EmporioLive.com EmporioLive.com Order # 11055 Por Item (CTT) 30.00 TOTAL PAYABLE : 3.00 EUR Payment to EmporioLive.com TOTAL PAYABLE : 3.00 EUR Transaction not allowed Invalid amount This is valid on any currency. I even tried to hard code the amount passed in the URL to MB, and the error is exactly the same. So I think something is wrong from MB side. I wonder if users of this module from countries like Norway or Sweden where you can easily have transactions above 999.99 DKK or SEK, are able to use it all. For all transactions up to 999.99 everything works fine. I have the latest version installed (http://www.oscommerce.com/community/contributions,5200/category,1/search,moneybookers) – 22 january 2009 Does any one have the same problem? How to solve this? Quote Link to comment Share on other sites More sharing options...
emporiolive.com Posted June 4, 2009 Author Share Posted June 4, 2009 (edited) I found the bug. To solve it you need to change the code in catalog/checkout_amoneybookersipn.php (if you use other modules besides checkout_amoneybookersipn.php you also need to change them) FIND '&amount=' . number_format($order->info['total'] * $currencies->get_value($moneybookers_currency), $currencies->get_decimal_places($moneybookers_currency)) . '&amount2=' . number_format($order->info['shipping_cost'] * $currencies->get_value($moneybookers_currency), $currencies->get_decimal_places($moneybookers_currency), '.', '') . '&amount2_description=' . urlencode($order->info['shipping_method']) . '&amount3=' . number_format($order->info['tax'] * $currencies->get_value($moneybookers_currency), $currencies->get_decimal_places($moneybookers_currency)) . and REPLACE by: '&amount=' . number_format($order->info['total'] * $currencies->get_value($moneybookers_currency), $currencies->get_decimal_places($moneybookers_currency), '.', '') . '&amount2=' . number_format($order->info['shipping_cost'] * $currencies->get_value($moneybookers_currency), $currencies->get_decimal_places($moneybookers_currency), '.', '') . '&amount2_description=' . urlencode($order->info['shipping_method']) . '&amount3=' . number_format($order->info['tax'] * $currencies->get_value($moneybookers_currency), $currencies->get_decimal_places($moneybookers_currency), '.', '') . Edited June 4, 2009 by emporiolive.com Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.