is it possible to check an order if it contains any refund programatically?
I want to display a specific text if that is the case. So far im checking if its cancelled:
if($order->has_status('cancelled') echo "display text";
But since the order status does not change if just a single item in an order of multiple items is refunded, I cant figure how to do this.
Any Idea?