goshippo/shippo-php-client

Floating Point Number problem in CurlClient

Opened this issue · 0 comments

When converting into JSON, some numbers become too long and the Shippo API sends a validation message back:

image

Affected Line:

$curlOptions[CURLOPT_POSTFIELDS] = json_encode($params);