diff --git a/crates/router/src/configs/defaults/payment_connector_required_fields.rs b/crates/router/src/configs/defaults/payment_connector_required_fields.rs index 9e42aec4a51d..752d46282687 100644 --- a/crates/router/src/configs/defaults/payment_connector_required_fields.rs +++ b/crates/router/src/configs/defaults/payment_connector_required_fields.rs @@ -417,7 +417,8 @@ impl Default for settings::RequiredFields { enums::Connector::Bankofamerica, RequiredFieldFinal { mandate: HashMap::new(), - non_mandate: HashMap::from( + non_mandate: HashMap::new(), + common: HashMap::from( [ ( "payment_method_data.card.card_number".to_string(), @@ -533,7 +534,6 @@ impl Default for settings::RequiredFields { ), ] ), - common: HashMap::new(), } ), ( @@ -3224,7 +3224,8 @@ impl Default for settings::RequiredFields { enums::Connector::Worldpay, RequiredFieldFinal { mandate: HashMap::new(), - non_mandate: { + non_mandate: HashMap::new(), + common: { let mut pmd_fields = HashMap::from([ ( "payment_method_data.card.card_number".to_string(), @@ -3257,7 +3258,6 @@ impl Default for settings::RequiredFields { pmd_fields.extend(get_worldpay_billing_required_fields()); pmd_fields }, - common: HashMap::new(), } ), ( @@ -6420,7 +6420,8 @@ impl Default for settings::RequiredFields { enums::Connector::Worldpay, RequiredFieldFinal { mandate: HashMap::new(), - non_mandate: { + non_mandate: HashMap::new(), + common: { let mut pmd_fields = HashMap::from([ ( "payment_method_data.card.card_number".to_string(), @@ -6453,7 +6454,6 @@ impl Default for settings::RequiredFields { pmd_fields.extend(get_worldpay_billing_required_fields()); pmd_fields }, - common: HashMap::new(), } ), ( @@ -8354,7 +8354,8 @@ impl Default for settings::RequiredFields { enums::Connector::Wellsfargo, RequiredFieldFinal { mandate: HashMap::new(), - non_mandate: HashMap::from( + non_mandate: HashMap::new(), + common: HashMap::from( [ ( "email".to_string(), @@ -8501,7 +8502,6 @@ impl Default for settings::RequiredFields { ), ] ), - common: HashMap::new(), } ), @@ -8705,7 +8705,9 @@ impl Default for settings::RequiredFields { enums::Connector::Multisafepay, RequiredFieldFinal { mandate: HashMap::new(), - non_mandate: HashMap::from([ + non_mandate: HashMap::new(), + common: HashMap::from( + [ ( "billing.address.first_name".to_string(), RequiredFieldInfo { @@ -8781,8 +8783,8 @@ impl Default for settings::RequiredFields { field_type: enums::FieldType::UserAddressLine2, value: None, } - )]), - common: HashMap::new(), + )] + ), } ), ( @@ -8908,7 +8910,8 @@ impl Default for settings::RequiredFields { enums::Connector::Wellsfargo, RequiredFieldFinal { mandate: HashMap::new(), - non_mandate: HashMap::from( + non_mandate: HashMap::new(), + common: HashMap::from( [ ( "email".to_string(), @@ -9055,7 +9058,6 @@ impl Default for settings::RequiredFields { ), ] ), - common: HashMap::new(), } ), ]),