Skip to content

Commit

Permalink
Fix php linting
Browse files Browse the repository at this point in the history
  • Loading branch information
hsingyuc committed Dec 29, 2023
1 parent cd6a9b1 commit cd2543f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion includes/class-wc-payment-gateway-wcpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -1263,7 +1263,12 @@ 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' ),
sprintf(
/* translators: %s: metadata. We do not need to translate WooPayMeta */
esc_html( __( 'We\'re not able to process this payment. Please try again later. WooPayMeta: intent_meta_order_id: %1$s, order_id: %2$s', 'woocommerce-payments' ) ),
esc_attr( $intent_meta_order_id ),
esc_attr( $order_id ),
),
'order_id_mismatch'
);
}
Expand Down

0 comments on commit cd2543f

Please sign in to comment.