Closed (duplicate)
Project:
DIBS Payment Gateway API
Version:
7.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
14 Dec 2012 at 12:27 UTC
Updated:
14 Dec 2012 at 12:30 UTC
payment_price is stored as a float in the dibs_transaction table. This causes problems when the value exceeds 1 000 000, it will then be returned in exponential form (1.125e+06 for 1 125 000 for example). This will of course cause all sorts of problems. Personally I think the value should be stored as an integer, but I guess this would not be as serious an issue if one would get the value as a normal float in PHP.
I have not had time yet to prepare a patch, but will do so as soon as I can.
This issue applies to both 1.x and 2.x branches of the module, but in the 1.x branch it will surface only when payment-amounts exceeds 1 000 000 SEK for example, since the value in db is divided by 100.
Comments
Comment #1
gnucifer commentedSeems like there was created a duplicate of this issue by accident. Closing this one.