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

[Order Details] Rely on needsProcessing property when checking isEligibleForPayment

Open iamgabrielma opened this issue 2 years ago • 0 comments

Order has a new needsProcessing property since WC 6.6

At the moment, we check if the Order's datePaid == nil to determine that an Order is eligible for payment, which can cause problems when an Order is switched manually between different statuses, as statuses like complete or processing will generate a date.

Related: https://github.com/woocommerce/woocommerce-ios/pull/7277 and https://github.com/woocommerce/woocommerce-ios/issues/7209

iamgabrielma avatar Jul 16 '22 06:07 iamgabrielma