Hi,
you can use a plugin or some custom code.
Gr
Hi,
can you tell me why my order (paid with credit cart) go to status complete? I read https://docs.woocommerce.com/document/managing-orders/ that order who are paid go to status processing (only Virtual and Downloadable go to complete status). I don’t know where is my problem, with woocommerce or something other.
Can you pleas write me how can I create if order paid set status “Paid”(I create custom order status), and than when the order are shipped manual set order status to Complete.
Hi,
Normally you can change the setting from the status after the payment here
wp-admin/admin.php?page=wc-settings&tab=checkout
woocommerce – settings – checkout
Hi,
there are just option where pay method are on/off in webshop, there are no option for to choose that for card payment method order status are in process or something else
Hi @mlesnica
The default status of an order paid by credit card should be Processing and not Complete, unless the plugin you are using for the credit card payments is overriding that.
If you have no way to change that in the settings of the payment gateway, I would suggest you reach out to the developers of the gateway to have a look for you.
Hi,
It depends on which plugin you use to finalize payments.
You could use a hook with an extra check to the payment option. Via that code you can change the status of the order
1) http://hookr.io/actions/woocommerce_payment_complete/
2) WC_Order::get_payment_method() – Get the payment method.
something like.. (needs to be adjusted)
add_action( 'woocommerce_payment_complete', 'wc_auto_paid_order', 20, 1 );
function wc_auto_paid_order( $order_id ) {
if ( ! $order_id )
return;
// Get an instance of the WC_Product object
$order = wc_get_order( $order_id );
if ( in_array( $order->get_payment_method(), array( 'bacs', 'cod', 'cheque', '' ) ) ) {
$order->update_status( 'paid' );
}
}
We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.