Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Moneybookers IPN - payments over 999.99 fail


emporiolive.com

Recommended Posts

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?

Link to comment
Share on other sites

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 by emporiolive.com
Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...