I am building an application that will download orders for some reporting, but while testing I noticed that I downloaded and order that had a tender with a failed payment. This order was done through the square online website. On the dashboard this order does not show up and the failed payment does not show up, but if I download all Square Online orders through the API for that day this order is retrieved. I find it odd that a failed credit card would still create an order in the system that nobody can see.
I don’t see an easy way for me to disregard this type of orders using the Order API since that state of the order is OPEN. OPEN does not work for me since we have orders that get picked up at a later date. The only way I can see is to look at the tender on each order and see if the total amount approved matches the total on the order. Please tell me there is an easier way to do this. I am hoping there is an easier way since the POS system only shows paid for orders. Is there some field I can use to make sure the order is paid?