diff --git a/src/StoreApi/Routes/V1/Checkout.php b/src/StoreApi/Routes/V1/Checkout.php index 94fbd406f8c..490c93ff152 100644 --- a/src/StoreApi/Routes/V1/Checkout.php +++ b/src/StoreApi/Routes/V1/Checkout.php @@ -473,7 +473,7 @@ private function update_customer_from_request( \WP_REST_Request $request ) { */ private function update_order_from_request( \WP_REST_Request $request ) { $this->order->set_customer_note( $request['customer_note'] ?? '' ); - $this->order->set_payment_method( $this->get_request_payment_method_id( $request ) ); + $this->order->set_payment_method( $this->get_request_payment_method( $request ) ); wc_do_deprecated_action( '__experimental_woocommerce_blocks_checkout_update_order_from_request',