• Resolved jamiefryatt

    (@jamiefryatt)


    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.