From 8098d581ea806a23d76e5afe43b160793f2a9f58 Mon Sep 17 00:00:00 2001 From: Danae Millan Date: Tue, 21 Nov 2023 09:49:17 +0100 Subject: [PATCH] Remove resolved TODO comment --- .../payment-methods/class-wc-stripe-upe-payment-gateway.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/includes/payment-methods/class-wc-stripe-upe-payment-gateway.php b/includes/payment-methods/class-wc-stripe-upe-payment-gateway.php index 11c4ba5a07..ab80e51d5a 100644 --- a/includes/payment-methods/class-wc-stripe-upe-payment-gateway.php +++ b/includes/payment-methods/class-wc-stripe-upe-payment-gateway.php @@ -1584,8 +1584,6 @@ private function get_address_data_for_payment_request( $order ) { * @return array An array containing the payment information for processing a payment intent. */ private function prepare_payment_information_from_request( WC_Order $order ) { - // TODO: throw exception if any required information is missing. - $payment_method = sanitize_text_field( wp_unslash( $_POST['wc-stripe-payment-method'] ?? '' ) ); // phpcs:ignore WordPress.Security.NonceVerification.Missing $selected_payment_type = sanitize_text_field( wp_unslash( $_POST['wc_stripe_selected_upe_payment_type'] ?? '' ) ); // phpcs:ignore WordPress.Security.NonceVerification.Missing $capture_method = empty( $this->get_option( 'capture' ) ) || $this->get_option( 'capture' ) === 'yes' ? 'automatic' : 'manual'; // automatic | manual.