Hello,
We replied via email.
The new one you sent me has caused a NEW issue that is not clearing the customers carts on Square only
However, in the new version we sent you, we only added the support of coupons stored in the "additionals" system of Hikashop. So, no code regarding the cart was added or modified.
Regarding the cart issue, Square, like some other HikaShop plugin, confirms the order some time after the order is placed (even after the customer is redirected back to your website). So the change of status depends on when Square will confirm it and send a notification to your website.
So to prevent your issue, you should set the "Clean cart when order is" option that you can find via "HIkashop->System->Configuration->Main" to "
Created"