Skip to content

Commit

Permalink
Fix free orders missing payment method (woocommerce#4854)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardo authored Sep 28, 2021
1 parent 533684b commit 90e513b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StoreApi/Routes/Checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,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->order->needs_payment() ? $this->get_request_payment_method( $request ) : '' );
$this->order->set_payment_method( $this->get_request_payment_method( $request ) );

/**
* WooCommerce Blocks Checkout Update Order From Request (experimental).
Expand Down

0 comments on commit 90e513b

Please sign in to comment.