Fix the order status for virtual & downloadable products

This commit is contained in:
Narek Zakarian 2022-06-06 16:12:42 +04:00
parent 77230fefa8
commit 0c185fca08

View file

@ -204,7 +204,7 @@ class OrderProcessor {
__( 'Payment successfully captured.', 'woocommerce-paypal-payments' )
);
$wc_order->update_meta_data( AuthorizedPaymentsProcessor::CAPTURED_META_KEY, 'true' );
$wc_order->update_status( 'processing' );
$wc_order->update_status( 'completed' );
}
$this->last_error = '';
return true;