question

keithp avatar image
keithp asked

orderConnector fails to be connected for applying discounts after "successfully" being connected

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.

Ordersclover developer communityDiscounts
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community