When creating ubercart orders, the process fails and an error message appears as stated in the title of this issue.

I have found a thread relating to the Ogone payment module: http://drupal.org/node/566168

I suspect it to be the same issue. Is there any help available for this?

Thanks in advance.

Comments

firfin’s picture

StatusFileSize
new1.12 KB

Attached patch changes the two occurences of $arg1->order_total * 100 to a rounded version round($arg1->order_total * 100)
Works on two of my installs which were having trouble because of the VAT module (uc_vat) which added extra decimal places.
However it might be better to replace round() with ceil() ?

DO NOT USE THIS PATCH, INSTEAD GET THE ONE FROM SECOND COMMENT

firfin’s picture

Status: Active » Needs review
StatusFileSize
new1.12 KB

Patch above had a typo. Use this one instead.

alfthecat’s picture

Thanks for the patch, I've applied it just now and will test. I'll report back after the weekend!

alfthecat’s picture

Status: Needs review » Fixed

Works fantastic, thanks again!

Status: Fixed » Closed (fixed)

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