From 5188bbb1f41b0e847d2b42947bd5885ae1884b48 Mon Sep 17 00:00:00 2001 From: Chethan Date: Tue, 5 Dec 2023 19:45:03 +0530 Subject: [PATCH] remove error propagation if card_holder_name not found during confirm --- crates/router/src/core/payments/helpers.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/router/src/core/payments/helpers.rs b/crates/router/src/core/payments/helpers.rs index 4b0920a55f51..6430824d09ca 100644 --- a/crates/router/src/core/payments/helpers.rs +++ b/crates/router/src/core/payments/helpers.rs @@ -1441,9 +1441,7 @@ pub async fn retrieve_card_with_permanent_token( card_number: card.card_number, card_holder_name: card .name_on_card - .get_required_value("name_on_card") - .change_context(errors::ApiErrorResponse::InternalServerError) - .attach_printable("card holder name was not saved in permanent locker")?, + .unwrap_or(masking::Secret::from("".to_string())), card_exp_month: card.card_exp_month, card_exp_year: card.card_exp_year, card_cvc: card_cvc.unwrap_or_default(),