buckaroo-it / WooCommerce

Repository containing the WooCommerce Payment Plugin by Buckaroo
2 stars 3 forks source link

Bp 3366 order amount rounding issue #201

Closed vegimcarkaxhija closed 6 months ago

ricklambrechts commented 6 months ago

wc_format_decimal returns a string. Doesn't it need to be converted to float?

I also expect that this does not work. Because for example the following values:

orderAmount: 195.2335 totalPaid: 195.23

Wil be converted to this now.

orderAmount: 195.2335 totalPaid: 195.2300

There is still no rounding on the orderAmount and the logic still thinks that the order is not paid while it is.