For some PHP configurations using json_encode on float values may caused them to be altered from their original state. For example 472.185 would become 472.18500000000006 after it has been encoded. This may create a scenario when the numbers are parsed in TaxJar that the math between the line item amounts and the total amounts do not add up correctly.
To resolve the issue all the floats are being cast as strings before performing the request to TaxJar.
For some PHP configurations using json_encode on float values may caused them to be altered from their original state. For example 472.185 would become 472.18500000000006 after it has been encoded. This may create a scenario when the numbers are parsed in TaxJar that the math between the line item amounts and the total amounts do not add up correctly.
To resolve the issue all the floats are being cast as strings before performing the request to TaxJar.
Click-Test Versions
Specs Passing