mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
add pending to legit WC_Order status
This commit is contained in:
parent
0d66899c4d
commit
103faec26d
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ class CheckoutOrderCompleted implements RequestHandler
|
|||
}
|
||||
|
||||
foreach ($wcOrders as $wcOrder) {
|
||||
if ($wcOrder->get_status() !== 'on-hold') {
|
||||
if (! in_array($wcOrder->get_status(),['pending', 'on-hold'])) {
|
||||
continue;
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue