Tags: Summary Sync
How are the pending payment calculated in a summary?
Let's understand this with an example. An order with a total amount of $100 has been partially paid $50. Hence, when our app creates a summary for the day including this order, then the $50 amount that is unpaid will be considered as pending payment. Hence, in the summary, $50 will be recorded as a pending payment.
There is another scenario as well. For example, an order was placed with the total amount of $100, however, the order was later edited on Shopify and an item worth $20 was removed by editing the order. This will update the order total amount to $80 and this same $80 is also being paid. In this particular scenario although the order is fully paid, however, as the initial order total was $100 and $20 was reduced by editing the order on Shopify, this $20 will be considered as pending payment because based on the order detail initially order total was $100 and paid $80. When you edit an order on Shopify and remove items from the order, sufficient data is not provided in the order by Shopify, resulting in this scenario that we have described. Standard practice would be to return the items from an order by refunding the item on Shopify.