Menu
Feedback
Start here

Known issues

Known issues
DecidirV1 Connector's Inconsistent rounding method for CSPTGRANDTOTALAMOUNT and CSITTOTALAMOUNT Fields.
Payments
ID: 787367
Backlog
Published on4/10/2023
Last updated on4/10/2023
1 min read

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.

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX Community
Join our community
Request VTEX support
For personalized assistance, contact our experts
Open a support ticket
GitHubDeveloper PortalCommunityFeedback