Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

feat(connector): [cybersource] add card holder name in dynamic fields (#4082)

SamraatBansal5185d65ef5d4
diff --git a/crates/router/src/configs/defaults.rs b/crates/router/src/configs/defaults.rs
index 5c2d62b40b..f9d98647d1 100644
--- a/crates/router/src/configs/defaults.rs
+++ b/crates/router/src/configs/defaults.rs
@@ -757,7 +757,8 @@ impl Default for super::settings::RequiredFields {
enums::Connector::Cybersource,
RequiredFieldFinal {
mandate: HashMap::new(),
- non_mandate: HashMap::from(
+ non_mandate: HashMap::new(),
+ common:HashMap::from(
[
(
"payment_method_data.card.card_number".to_string(),
@@ -795,6 +796,15 @@ impl Default for super::settings::RequiredFields {
value: None,
}
),
+ (
+ "payment_method_data.card.card_holder_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_holder_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
(
"email".to_string(),
RequiredFieldInfo {
@@ -873,7 +883,6 @@ impl Default for super::settings::RequiredFields {
)
]
),
- common:HashMap::new(),
}
),
(
@@ -2853,6 +2862,15 @@ impl Default for super::settings::RequiredFields {
value: None,
}
),
+ (
+ "payment_method_data.card.card_holder_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_holder_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
(
"email".to_string(),
RequiredFieldInfo {
@@ -4783,7 +4801,8 @@ impl Default for super::settings::RequiredFields {
field_type: enums::FieldType::UserBank,
value: None,
}
- )
+ ),
+
]),
}
),