From 676a1501e50f1daedebd5d783a60ebb618e496f6 Mon Sep 17 00:00:00 2001 From: Narek Zakarian Date: Tue, 23 Jan 2024 19:15:40 +0400 Subject: [PATCH] Include the Liability Shift --- .../src/Processor/ThreeDSecureHandlingTrait.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/ppcp-wc-gateway/src/Processor/ThreeDSecureHandlingTrait.php b/modules/ppcp-wc-gateway/src/Processor/ThreeDSecureHandlingTrait.php index 38c73af8d..14b21af72 100644 --- a/modules/ppcp-wc-gateway/src/Processor/ThreeDSecureHandlingTrait.php +++ b/modules/ppcp-wc-gateway/src/Processor/ThreeDSecureHandlingTrait.php @@ -50,9 +50,12 @@ trait ThreeDSecureHandlingTrait { $three_d_response_order_note_result_format = ''; $three_d_response_order_note_result = sprintf( $three_d_response_order_note_result_format, + /* translators: %s is liability shift */ + sprintf( __( 'Liability Shift: %s', 'woocommerce-paypal-payments' ), esc_html( $result->liability_shift() ) ), /* translators: %s is enrollment status */ sprintf( __( 'Enrollment Status: %s', 'woocommerce-paypal-payments' ), esc_html( $result->enrollment_status() ) ), /* translators: %s is authentication status */ @@ -64,7 +67,7 @@ trait ThreeDSecureHandlingTrait { wp_kses_post( $three_d_response_order_note_result ) ); $wc_order->add_order_note( $three_d_response_order_note ); - $wc_order->update_meta_data( PayPalGateway::THREE_D_AUTH_RESULT_META_KEY, $three_d ); + $wc_order->update_meta_data( PayPalGateway::THREE_D_AUTH_RESULT_META_KEY, $result->to_array() ); $wc_order->save_meta_data(); /**