From c380721e46d0c96a8a3adde30af28577b802038c Mon Sep 17 00:00:00 2001 From: Laurel Fulford Date: Mon, 8 Dec 2025 14:03:38 -0800 Subject: [PATCH] fix: add Link to express payment array --- includes/class-modal-checkout.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-modal-checkout.php b/includes/class-modal-checkout.php index 6d62b13bf..047941796 100644 --- a/includes/class-modal-checkout.php +++ b/includes/class-modal-checkout.php @@ -1590,7 +1590,7 @@ public static function is_express_checkout() { // Get express_payment_type in a way that works for both Stripe and WooPayments. $express_payment_info = isset( $_POST['express_payment_type'] ) ? sanitize_text_field( wp_unslash( $_POST['express_payment_type'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification - $is_express_checkout = ! empty( $express_payment_info ) && in_array( $express_payment_info, [ 'apple_pay', 'google_pay', 'payment_request_api' ], true ); // Validate payment request types: https://github.com/woocommerce/woocommerce-gateway-stripe/blob/develop/includes/payment-methods/class-wc-stripe-payment-request.php#L557-L586. + $is_express_checkout = ! empty( $express_payment_info ) && in_array( $express_payment_info, [ 'apple_pay', 'google_pay', 'payment_request_api', 'link' ], true ); // Validate payment request types: https://github.com/woocommerce/woocommerce-gateway-stripe/blob/develop/includes/payment-methods/class-wc-stripe-payment-request.php#L557-L586. if ( $is_express_checkout ) { $referrer = isset( $_SERVER['HTTP_REFERER'] ) ? \esc_url_raw( \wp_unslash( $_SERVER['HTTP_REFERER'] ) ) : false; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized