question

mybmr avatar image
mybmr asked parquet76 answered

Getting two object for "Customer" while placing order from Customer application.

Hello,

Currently, we are facing an issue while we are placing an order with Clover's Customer application, and when we are retrieving the Customer from the "OrderConnector.getOrder(orderId) " method,


It returns two objects for the same customer with different "id" fields. It's hard to know which customer id is actually the correct one and why we are getting 2 customer objects in the response.


We are getting customers attached with Order this way,

order = orderConnector.getOrder(OrderId);
customerId = order.getCustomers().get(0).getId();

We are attaching a reference response file here. Please find the attachment.

CLOVER_ORDER_RESPONSE.txt

Thank you,

MYBMR

Clover Android SDKclover developer community
10 |2000

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

1 Answer

·
parquet76 avatar image
parquet76 answered

You don't need to ask questions twice.

10 |2000

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

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