Title: Problem processing payment with Square
Last modified: April 16, 2020

---

# Problem processing payment with Square

 *  Resolved [meghanjohnson](https://wordpress.org/support/users/meghanjohnson/)
 * (@meghanjohnson)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/problem-processing-payment-with-square/)
 * I had the same problem as another in the forum with check out via square. I since
   disconnected from the square account and reconnect. I attempted to process another
   transaction and it failed and got the below error message. How do I fix this?
 * Array
    ( [0] => stdClass Object ( [code] => EXPECTED_STRING [detail] => Expected
   a string value (line 1, character 50) [field] => location_id [category] => INVALID_REQUEST_ERROR)
 * )
    Order status changed from Pending payment to Failed.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-processing-payment-with-square%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [WPExperts.io](https://wordpress.org/support/users/wpexpertsio/)
 * (@wpexpertsio)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/problem-processing-payment-with-square/#post-12688620)
 * Hi [@meghanjohnson](https://wordpress.org/support/users/meghanjohnson/),
    Please
   make sure that you have selected the location from the dropdown menu as shown
   in the screenshot below.
 * [https://prnt.sc/s14ht5](https://prnt.sc/s14ht5)
 *  [kh0309](https://wordpress.org/support/users/kh0309/)
 * (@kh0309)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/problem-processing-payment-with-square/#post-12967973)
 * Hello,
 * I am having the same issue, **but the location is selected appropriately**. I
   just recently disconnected and reconnected from Square in order to refresh the
   authentication (we do that every other week) and this is the first transaction
   to try to come through since I did that.
 * Here’s the result:
 * Array
    ( [0] => stdClass Object ( [code] => EXPECTED_STRING [detail] => Expected
   a string value (line 1, character 50) [field] => location_id [category] => INVALID_REQUEST_ERROR)
 * )
    Order status changed from Pending payment to Failed.
 *  [wpexpertssupportteam](https://wordpress.org/support/users/wpexpertssupportteam/)
 * (@wpexpertssupportteam)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/problem-processing-payment-with-square/#post-12971104)
 * Hi [@kh0309](https://wordpress.org/support/users/kh0309/),
    Our technical team
   needs some more info from your end to sort out this issue please open a support
   ticket at our website so we can assist you further regarding this issue also 
   please have a look at the screenshot shared below.
 * [https://prnt.sc/sxvqcd](https://prnt.sc/sxvqcd)

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

The topic ‘Problem processing payment with Square’ is closed to new replies.

 * ![](https://ps.w.org/woosquare/assets/icon-128x128.gif?rev=3123976)
 * [WC Shop Sync – Square Payment Gateway and Product Synchronization for WooCommerce](https://wordpress.org/plugins/woosquare/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woosquare/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woosquare/)
 * [Active Topics](https://wordpress.org/support/plugin/woosquare/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woosquare/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woosquare/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [wpexpertssupportteam](https://wordpress.org/support/users/wpexpertssupportteam/)
 * Last activity: [5 years, 12 months ago](https://wordpress.org/support/topic/problem-processing-payment-with-square/#post-12971104)
 * Status: resolved