I'm trying to add discounts to an order on a separate thread than where I call orderConnector.connect(). I had it functioning before but lately have received and error saying "com.clover.sdk.v1.BindingException: Could not bind to Android service". Looking into this has caused me to check the status of my orderConnector before my "orderConnector.addItemDiscount2()" call. I get these results prior to spawning the new thread for adding line discounts. I also check if it's connected prior to adding discounts and it still says it's disconnected causing the above error I believe. Why do I get two different answers about the connected status?
val orderConnector = OrderConnector(this, mAccount, null) val success = orderConnector.connect() // returns true val success2 = orderConnector.isConnected // returns false
https://docs.clover.com/docs/using-order-connector
I have referenced the above page during this process.