Title: INVALID_REQUEST
Last modified: September 26, 2022

---

# INVALID_REQUEST

 *  Resolved [nickerbocker](https://wordpress.org/support/users/nickerbocker/)
 * (@nickerbocker)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/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](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.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Easy Payment](https://wordpress.org/support/users/easypayment/)
 * (@easypayment)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/invalid_request/#post-16051102)
 * Hello [@nickerbocker](https://wordpress.org/support/users/nickerbocker/),
 * We resolved issue and released new version.
 * Thanks!
 *  Thread Starter [nickerbocker](https://wordpress.org/support/users/nickerbocker/)
 * (@nickerbocker)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/invalid_request/#post-16051112)
 * Thnaks, did you have a quick explanation of the problem? just for curiosity sake.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘INVALID_REQUEST’ is closed to new replies.

 * ![](https://ps.w.org/woo-paypal-gateway/assets/icon-256x256.png?rev=3275768)
 * [Payment Gateway for PayPal on WooCommerce](https://wordpress.org/plugins/woo-paypal-gateway/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-paypal-gateway/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-paypal-gateway/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-paypal-gateway/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-paypal-gateway/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-paypal-gateway/reviews/)

## Tags

 * [paypal](https://wordpress.org/support/topic-tag/paypal/)
 * [paypal pro](https://wordpress.org/support/topic-tag/paypal-pro/)

 * 2 replies
 * 2 participants
 * Last reply from: [nickerbocker](https://wordpress.org/support/users/nickerbocker/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/invalid_request/#post-16051112)
 * Status: resolved