question

Suraj Dubey avatar image
Suraj Dubey asked Suraj Dubey commented

How to get Customer info for the order via android sdk

I have created an order via POS with the customer added to it and now i have the order_id ,payment_id,merchant_id with me via broadcast receiver.I need to get the customer details.Please help
Customers
10 |2000

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

Lee Tickett avatar image
Lee Tickett answered Suraj Dubey commented
Did you try order.getCustomers() ?
1 comment
10 |2000

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

Suraj Dubey avatar image Suraj Dubey commented ·

what is this order object ? DO I have to user CustomerConnector for this.

0 Likes 0 ·
Lee Tickett avatar image
Lee Tickett answered Suraj Dubey commented
OrderConnector orderConnector = new OrderConnector(mContext, mAccount, null);
order = orderConnector.getOrder(mOrderId);
List<Customer> customers = order.getCustomers();
3 comments
10 |2000

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

Suraj Dubey avatar image Suraj Dubey commented ·

I should do this in background right ? Because its givinig error when I write it in OnCreate

0 Likes 0 ·
Lee Tickett avatar image Lee Tickett Suraj Dubey commented ·

Correct :)

0 Likes 0 ·
Suraj Dubey avatar image Suraj Dubey commented ·

Thanks man

0 Likes 0 ·

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