diff --git a/includes/gateways/paypal/includes/class-wc-gateway-paypal-response.php b/includes/gateways/paypal/includes/class-wc-gateway-paypal-response.php index 07bc46a219f..5677bf1ae6f 100644 --- a/includes/gateways/paypal/includes/class-wc-gateway-paypal-response.php +++ b/includes/gateways/paypal/includes/class-wc-gateway-paypal-response.php @@ -63,9 +63,11 @@ abstract class WC_Gateway_Paypal_Response { * @param string $note Payment note. */ protected function payment_complete( $order, $txn_id = '', $note = '' ) { - $order->add_order_note( $note ); - $order->payment_complete( $txn_id ); - WC()->cart->empty_cart(); + if ( ! $order->has_status( array( 'processing', 'completed' ) ) ) { + $order->add_order_note( $note ); + $order->payment_complete( $txn_id ); + WC()->cart->empty_cart(); + } } /**