Merge pull request #676 from woocommerce/PCP-711-capture-virtual-only-orders-intent-problem

Fix the order status for virtual & downloadable products
This commit is contained in:
Emili Castells 2022-06-14 11:53:44 +02:00 committed by GitHub
commit a8fb55daa4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -215,7 +215,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;