Get current order

Hi All,

I need help getting currently open order on local machine. I have studied IPoyntOrderService and IPoyntOrderServiceListener but didn’t comprehend how exactly it should be used.

public void getOrder(String s, String s1, IPoyntOrderServiceListener iPoyntOrderServiceListener) throws RemoteException {
  }

getOrder method in IPoyntOrderService is void. It receives IPoyntOrderServiceListener as callback but the only method in it is also void.

public void orderResponse(Order order, String s, PoyntError poyntError) throws RemoteException {
    }

Hi Alex,

Sorry for the delay responding to your question.

Consider using Poynt Content Providers. Specifically https://poynt.github.io/developer/javadoc/co/poynt/os/contentproviders/orders/orderstatuses/OrderstatusesColumns.html.

Here’s an example of how to work with Poynt Content Provider: http://bit.ly/2c2nvoE.

Once you get the order id, you can use OrderService to retrieve full order details.

Hi Dennis,

It helped me a lot,

Thank you!