Payment method string for credit card payments?
-
Hello,
I’d like to set the order status of orders paid with Stripe Credit/Debit Card to ‘on-hold’. What is the string of the payment method in this case? I have tried ‘stripe’ but it doesn’t seem to work. Thanks!
add_filter( 'woocommerce_payment_complete_order_status', 'custom_payment_complete_status_payment_method', 10, 3 ); function custom_payment_complete_status_payment_method( $status, $order_id, $order ){ $payment_method = $order->get_payment_method(); if( $payment_method == 'stripe' ){ $status = 'on-hold'; } return $status; }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Payment method string for credit card payments?’ is closed to new replies.