From e3a81d7c049574bf0a4f29c0be267072e4780b9d Mon Sep 17 00:00:00 2001 From: hsingyuc Date: Thu, 28 Dec 2023 22:10:24 -0500 Subject: [PATCH] Fix php linting --- includes/class-wc-payment-gateway-wcpay.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/class-wc-payment-gateway-wcpay.php b/includes/class-wc-payment-gateway-wcpay.php index a10986f2949..c8fefcf4f6f 100644 --- a/includes/class-wc-payment-gateway-wcpay.php +++ b/includes/class-wc-payment-gateway-wcpay.php @@ -1263,7 +1263,8 @@ public function process_payment_for_order( $cart, $payment_information, $schedul $intent_meta_order_id = is_numeric( $intent_meta_order_id_raw ) ? intval( $intent_meta_order_id_raw ) : 0; if ( $intent_meta_order_id !== $order_id ) { throw new Intent_Authentication_Exception( - __( 'We\'re not able to process this payment. Please try again later. WooPayMeta: intent_meta_order_id: ' . $intent_meta_order_id . ', order_id: ' . $order_id, 'woocommerce-payments' ), + /* translators: %s: metadata. We do not need to translate WooPayMeta */ + printf(__( 'We\'re not able to process this payment. Please try again later. WooPayMeta: intent_meta_order_id: %s, order_id: %s' , 'woocommerce-payments' ), $intent_meta_order_id, $order_id ), 'order_id_mismatch' ); }