Closed (fixed)
Project:
Ubercart securepay.com.au Payment Gateway
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Oct 2010 at 09:11 UTC
Updated:
18 Jan 2011 at 07:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
alexkb commentedI've made a small patch on HEAD (but should also work on the 1.x-dev version) for fixing this, as well as displaying a more meaningful message in the watchdog log.
Basically, it's expected that $amount is a float, but the problem in my case (not sure if its caused by another module like uc_vat), is that the $amount has some random fraction of a cent, i.e. instead of 20.00 its 20.00001.
The fix for the amount issue, is a bit of a hack, as it's likely not uc_securepayau's fault, but frankly, I don't have time right now to work out the cause.
If anyone has any other idea's about how to fix this more elegantly, please reply.
Comment #2
univate commentedEven just casting the amount to an int would probably do the job here.
Comment #3
alexkb commentedThanks Univate - will your suggestion be committed into your module? perhaps along with the watchdog log change too.
Comment #4
univate commented