Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Fix - "Order received" page does not display the payment method infor…
Browse files Browse the repository at this point in the history
…mation.
  • Loading branch information
iamdharmesh committed Apr 19, 2023
1 parent e3393af commit 5565747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StoreApi/Routes/V1/Checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 5565747

Please sign in to comment.