Billmate / opencart-3-billmate-checkout

Billmate Payment Gateway for OpenCart 3 - NO LONGER UPDATED / SUPPORTED
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

Amounts in API requests must be int #70

Closed kalorifri closed 3 years ago

kalorifri commented 3 years ago

Amounts in API requests must be int and in minor units ( Cent when Dollar) Issue seems to start in release 1.3.0B1. It seems to work in 1.2.0.

Suggested solution: see release 1.2.0 and search for "function toCents"

KFoobar commented 3 years ago

Please clarify how the issue presents it self and where/when it occurs or provide the steps needed to reproduce the issue.

kalorifri commented 3 years ago

amount to pay could look like 3920.0000000000005 in API request. Do not know how to reproduce, seems like only some articles in store are affected.

Articles aprice, withouttax Cart.Total withouttax, tax, withtax are affected.

I assume that just convert to int should be enough.

KFoobar commented 3 years ago

Thanks for the clarification. I believe this issue is solved in the latest beta release (# 3). But I will go through the source code and verify that it is truly resolved.