Known issues
DecidirV1 Connector's Inconsistent rounding method for CSPTGRANDTOTALAMOUNT and CSITTOTALAMOUNT Fields.
DecidirV1 Connector's Inconsistent rounding method for CSPTGRANDTOTALAMOUNT and CSITTOTALAMOUNT Fields.
ID: 787367
Backlog
Published on 4/10/2023
•
Last update on 4/10/2023
Summary
The legacy DecidirV1 connector uses an internal method to calculate the fields CSPTGRANDTOTALAMOUNT
and CSITTOTALAMOUNT
, which is the product between the product value and quantity. This approach results in a string with two decimal places. Consequently, when the product price contains more than two decimals, the value of the field CSPTGRANDTOTALAMOUNT
diverges since it's the payment value itself.
Simulation
Place an order using decidirV1 with a product in the cart with a price that has more than 3 decimals.
Workaround
To avoid such discrepancies, we recommend using products with a maximum of two decimal places or modifying the checkout cart to eliminate the use of decimals.