woocommerce-ios icon indicating copy to clipboard operation
woocommerce-ios copied to clipboard

Remove `datePaid` dependence from `isEligibleForRefund`

Open iamgabrielma opened this issue 2 years ago • 0 comments

At the moment, to know if an Order is eligible for a refund, we perform a datePaid nil-check as one of the variables to return it.

We should explore using other options to avoid problems when a merchant changes order status manually, or when plugins alter this functionality, like the Order's needsPayment property instead.

iamgabrielma avatar Jul 24 '22 09:07 iamgabrielma