INVALID_REQUEST
-
Hi,
When clicking on the Paypal button to make a payment on any of the sites products, it just refresh and closes the Paypal pop up screen.
Here is the error from the logs
2022-09-26T16:32:08+00:00 INFO Response Code: 400
2022-09-26T16:32:08+00:00 INFO Response Message: Bad Request
2022-09-26T16:32:08+00:00 INFO Response Body: Array
(
[name] => INVALID_REQUEST
[message] => Request is not well-formed, syntactically incorrect, or violates schema.
[debug_id] => e5996d362a56b
[details] => Array
(
[0] => Array
(
[field] => /purchase_units/@reference_id==’wc_order_Z5yI2XEUb80qd’/amount/breakdown/item_total/value
[value] => 6.36000000000000031974423109204508364200592041015625
[location] => body
[issue] => INVALID_STRING_LENGTH
[description] => The value of a field is either too short or too long.
))
[links] => Array
(
[0] => Array
(
[href] => https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_STRING_LENGTH
[rel] => information_link
[encType] => application/json
))
)`
6.36 was the product price, but sure why it has so many other decimals after it, other paypal plugins are working correctly.
- The topic ‘INVALID_REQUEST’ is closed to new replies.