Title: INVALID_STRING_LENGTH
Last modified: February 15, 2022

---

# INVALID_STRING_LENGTH

 *  Resolved [jamiefryatt](https://wordpress.org/support/users/jamiefryatt/)
 * (@jamiefryatt)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/invalid_string_length/)
 * Hi,
 * We’ve just installed this plugin and are having problems getting through to PayPal
   after clicking the PayPal button. We get a popup for PayPal which then closes
   and shows an error in the basket.
 * Having checked the logs, the issue is around the length of the value fields being
   passed. They seem to be very long and i’m assuming PayPal only wants 2 decimal
   places. Below is an extract from the log.
 *     ```
       [0] => Array
                       (
                           [field] => /purchase_units/@reference_id=='wc_order_2ziYVwQlnF2M4'/amount/breakdown/shipping/value
                           [value] => 4.160000000000000142108547152020037174224853515625
                           [location] => body
                           [issue] => INVALID_STRING_LENGTH
                           [description] => The value of a field is either too short or too long.
       ```
   
 * Can you please advise how we can fix this, if its a problem our end of something
   plugin / paypal side.
 * Thanks
 * Jamie

The topic ‘INVALID_STRING_LENGTH’ is closed to new replies.

 * ![](https://ps.w.org/express-checkout/assets/icon-256x256.png?rev=2412379)
 * [Express Checkout via PayPal for WooCommerce](https://wordpress.org/plugins/express-checkout/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/express-checkout/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/express-checkout/)
 * [Active Topics](https://wordpress.org/support/plugin/express-checkout/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/express-checkout/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/express-checkout/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [jamiefryatt](https://wordpress.org/support/users/jamiefryatt/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/invalid_string_length/)
 * Status: resolved