refactor(payment_methods): make the card_holder_name optional for card details in the payment APIs (#3074)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Chethan Rao
2023-12-08 17:58:42 +05:30
committed by GitHub
parent b283b6b662
commit b279591057
39 changed files with 170 additions and 78 deletions

View File

@ -118,7 +118,7 @@ impl From<StripeCard> for payments::Card {
card_number: card.number,
card_exp_month: card.exp_month,
card_exp_year: card.exp_year,
card_holder_name: card.holder_name.unwrap_or("name".to_string().into()),
card_holder_name: card.holder_name,
card_cvc: card.cvc,
card_issuer: None,
card_network: None,

View File

@ -95,7 +95,7 @@ impl From<StripeCard> for payments::Card {
card_number: card.number,
card_exp_month: card.exp_month,
card_exp_year: card.exp_year,
card_holder_name: masking::Secret::new("stripe_cust".to_owned()),
card_holder_name: Some(masking::Secret::new("stripe_cust".to_owned())),
card_cvc: card.cvc,
card_issuer: None,
card_network: None,