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