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

gnucifer’s picture

Status: Active » Closed (duplicate)

Seems like there was created a duplicate of this issue by accident. Closing this one.