locationId is required
-
On the checkout page, WooSquare is throwing an error “locationId is required”. WooSquare works fine in sandbox but not in production mode. In Chrome on Windows, user clicks the “Place Order” button, but the first time nothing happens but you see the error in the Chrome Console. Clicking the button again causes the transaction to go through fine. Problem is that some customers don’t realize that their order was not processed, so we end up with an abandoned cart.
URL given is a test site. Production site has the same problem. Can look at source code of checkout page and see that locationId is blank in the var square_params. Using free version of WooSquare v3.6.2. Latest version of WordPress and WooCommerce. Connected Square automatically, and locationID in admin area has a value for production.
Steps to reproduce:
– use Chrome browser on Windows desktop
– put something in basket
– go to checkout page
– fill in name, address, etc
– use testing credit card number, any future date, cvv and postal code (note – error occurs with real credit cards too)
– click “Place Order button” with mouse
– nothing appears to happen, but locationId error appears in Console
– in production with valid credit card data, the transaction goes through after you click the Place Order button againThe page I need help with: [log in to see the link]
The topic ‘locationId is required’ is closed to new replies.