I get the following error after submitting an order:

Error 508
Invalid characters in amount field. Please contact the merchant.

I have taxes enabled for VAT at 21% ->admin/store/settings/taxes

CommentFileSizeAuthor
#2 Capture1.JPG72.15 KBstevoarmstrong
#2 Capture2.JPG92.28 KBstevoarmstrong

Comments

alanburke’s picture

Can you explain when this error is appearing?
Perhaps post a screenshot.
Seem very odd.
Does it occur with other payment modules?

stevoarmstrong’s picture

StatusFileSize
new92.28 KB
new72.15 KB

Hi Alan,
The error appears on the review order page. It works fine if you choose Northern Ireland as the shipping address, as VAT is only being added to ROI orders. I'm using ubercart's built in taxes module, and have .21 set up as a flat tax rate. I've attached 2 screen shots and you can process a test order yourself by creating a test account at http://www.salonsaversonline.ie/user/register

Cheers,

Steve

stevoarmstrong’s picture

Any progress on this? Let me know if you need any more info from me. Cheers,

Steve

alanburke’s picture

Assigned: Unassigned » alanburke

Problem confirmed.
Working on a fix now.

alanburke’s picture

Status: Active » Needs review

Can't patch from here.
Change line 82 in the module to
$amount = round(($order->order_total*100));

Realex only wants a value in cent [no decimals allowed]

stevoarmstrong’s picture

Status: Needs review » Fixed

That fix worked a treat. Thanks very much!

alanburke’s picture

Status: Fixed » Needs work

I still need to get this into the module code...
Good to see it works!

alanburke’s picture

Status: Needs work » Fixed

Fixed in Head now.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

SkippyCraig’s picture

If you are getting this error on the 'UC Realex Remote' gateway then you will need to to make the same fix to line 170 in that module