Skip to content

Commit

Permalink
fix(payment_methods): unmask last4 when metadata changed during /paym…
Browse files Browse the repository at this point in the history
…ents (#3635)
  • Loading branch information
Chethan-rao authored Feb 12, 2024
1 parent 278fdfa commit b0565e2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/router/src/core/payments/tokenization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,7 @@ where
let updated_card = Some(CardDetailFromLocker {
scheme: None,
last4_digits: Some(
card.card_number.to_string().split_off(
card.card_number.to_string().len() - 4,
),
card.card_number.clone().get_last4(),
),
issuer_country: None,
card_number: Some(card.card_number),
Expand Down

0 comments on commit b0565e2

Please sign in to comment.