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 681bd23 commit cd6a9b1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions includes/class-wc-payment-gateway-wcpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -937,8 +937,6 @@ public function process_payment( $order_id ) {
$payment_information = $this->prepare_payment_information( $order );
return $this->process_payment_for_order( WC()->cart, $payment_information );
} catch ( Exception $e ) {
error_log('2. process payment catch exception');
error_log(print_r($e->getmessage(),true));
// We set this variable to be used in following checks.
$blocked_due_to_fraud_rules = $e instanceof API_Exception && 'wcpay_blocked_by_fraud_rule' === $e->get_error_code();

Expand Down Expand Up @@ -1265,7 +1263,7 @@ 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' ),
__( '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' ),
'order_id_mismatch'
);
}
Expand Down

0 comments on commit cd6a9b1

Please sign in to comment.