', 'woocommerce-paypal-payments' ); $avs_response_order_note_title = __( 'Address Verification Result', 'woocommerce-paypal-payments' ); /* translators: %1$s is AVS order note title, %2$s is AVS order note result markup */ $avs_response_order_note_format = __( '%1$s %2$s', 'woocommerce-paypal-payments' ); $avs_response_order_note_result_format = ''; $avs_response_order_note_result = sprintf( $avs_response_order_note_result_format, /* translators: %s is fraud AVS code */ sprintf( __( 'AVS: %s', 'woocommerce-paypal-payments' ), esc_html( $fraud_responses['avs_code'] ) ), /* translators: %s is fraud AVS address match */ sprintf( __( 'Address Match: %s', 'woocommerce-paypal-payments' ), esc_html( $fraud_responses['address_match'] ) ), /* translators: %s is fraud AVS postal match */ sprintf( __( 'Postal Match: %s', 'woocommerce-paypal-payments' ), esc_html( $fraud_responses['postal_match'] ) ), /* translators: %s is card brand */ sprintf( __( 'Card Brand: %s', 'woocommerce-paypal-payments' ), esc_html( $card_brand ) ), /* translators: %s card last digits */ sprintf( __( 'Card Last Digits: %s', 'woocommerce-paypal-payments' ), esc_html( $card_last_digits ) ) ); $avs_response_order_note = sprintf( $avs_response_order_note_format, esc_html( $avs_response_order_note_title ), wp_kses_post( $avs_response_order_note_result ) ); $wc_order->add_order_note( $avs_response_order_note ); $cvv_response_order_note_format = ''; $cvv_response_order_note = sprintf( $cvv_response_order_note_format, /* translators: %s is fraud CVV match */ sprintf( __( 'CVV2 Match: %s', 'woocommerce-paypal-payments' ), esc_html( $fraud_responses['cvv_match'] ) ) ); $wc_order->add_order_note( $cvv_response_order_note ); $meta_details = array_merge( $fraud_responses, array( 'card_brand' => $card_brand, 'card_last_digits' => $card_last_digits, ) ); $wc_order->update_meta_data( PayPalGateway::FRAUD_RESULT_META_KEY, $meta_details ); $wc_order->save_meta_data(); /** * Fired when the fraud result information is added to WC order. */ do_action( 'woocommerce_paypal_payments_fraud_result_added', $wc_order, $order ); } }
Fatal error: Trait "WooCommerce\PayPalCommerce\WcGateway\Processor\CreditCardOrderInfoHandlingTrait" not found in /htdocs/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/WCGatewayModule.php on line 68