diff --git a/changelog/fix-8292-reducing-stock b/changelog/fix-8292-reducing-stock new file mode 100644 index 00000000000..18c19f3afd8 --- /dev/null +++ b/changelog/fix-8292-reducing-stock @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Preventing stock quantity from being reduced twice. diff --git a/includes/class-wc-payment-gateway-wcpay.php b/includes/class-wc-payment-gateway-wcpay.php index 98ce26aaed2..fb801346598 100644 --- a/includes/class-wc-payment-gateway-wcpay.php +++ b/includes/class-wc-payment-gateway-wcpay.php @@ -1726,7 +1726,7 @@ public function process_payment_for_order( $cart, $payment_information, $schedul return $response; } - wc_reduce_stock_levels( $order_id ); + wc_maybe_reduce_stock_levels( $order_id ); if ( isset( $cart ) ) { $cart->empty_cart(); }