question

Lorraine LIng avatar image
Lorraine LIng asked chrissaffire commented

Order Connector getPayments() sometimes returns with empty list

Hi, we use the Order Connector in the Android SDK to retrieve information about a recent Payment. This works in most cases, but occasionally the Payment list is empty. We would like to understand why sometimes it is empty and if there is a way to ensure the payment is listed. Could a payment that was only partially completed result in the payment not being included? Any other potential reasons for empty payment list?

Code snippet:

Private OrderConnector orderConnector;

orderConnector = new OrderConnector(context…

Order order = orderConnector.getOrder(orderId);

java.util.List<Payment> payments = order.getPayments();  
// issue: payments usually has most recent payment, but sometime it is empty

TIA

Lorraine

OrdersClover Android SDK
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.

chrissaffire avatar image chrissaffire commented ·
@lorraine Did you ever get this resolved? We've seen the same thing occur for us recently
0 Likes 0 ·

1 Answer

·
Lorraine LIng avatar image
Lorraine LIng answered

Any suggestions on this? What would cause OrderConnector getPayments() to have an empty payment list right after a payment was completed?

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