Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
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.

Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback